diff options
| author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-10-12 17:28:04 +0200 | 
|---|---|---|
| committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-10-12 17:35:04 +0200 | 
| commit | d375c023b5fa68e3a9804687683772c2734be8a4 (patch) | |
| tree | 77056ee2f4264316aec7b63ac5419f021ea6ac94 /src/ipcpd/normal | |
| parent | b8c73d171d4352293b18ddbc71c587233d1f2fa5 (diff) | |
| download | ouroboros-d375c023b5fa68e3a9804687683772c2734be8a4.tar.gz ouroboros-d375c023b5fa68e3a9804687683772c2734be8a4.zip | |
ipcpd: Configure DHT slack timer at build time
This allows configuration of the DHT slack timer at build time.
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd/normal')
| -rw-r--r-- | src/ipcpd/normal/dht.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index aa1909e9..0ad9d9a7 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -2729,7 +2729,7 @@ static void handle_event(void *       self,                  pthread_t          thr;                  struct join_info * inf;                  struct conn *      c     = (struct conn *) o; -                struct timespec    slack = {0, 10 * MILLION}; +                struct timespec    slack = {0, DHT_ENROLL_SLACK * MILLION};                  /* Give the pff some time to update for the new link. */                  nanosleep(&slack, NULL); | 
