summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-01 22:28:31 +0300
committerNakidai <nakidai@disroot.org>2026-02-01 22:28:31 +0300
commit58a7e4a4d7449d58732e024ea07ea3623c10d8de (patch)
tree932b0402a91f4b513b5ab81a8d53af467a771f86 /config.h
parent37b3fcd87133cf67a791dd4ec7a185d281331fb2 (diff)
downloadlibreircd-58a7e4a4d7449d58732e024ea07ea3623c10d8de.tar.gz
libreircd-58a7e4a4d7449d58732e024ea07ea3623c10d8de.zip
Fixes
- Now code depends on config.h in Makefile
- By default the smallest timeout is chosen for poll()
- Somewhy there was sizeof(PEER_QUIT_MAX)...
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index 1f18edd..394ac70 100644
--- a/config.h
+++ b/config.h
@@ -36,4 +36,4 @@
 #define PEER_PINGTIMEOUT 120
 #define PEER_PONGTIMEOUT 20
 
-#define POLL_TIMEOUT PEER_PINGTIMEOUT
+#define POLL_TIMEOUT (PEER_PINGTIMEOUT < PEER_PONGTIMEOUT ? PEER_PINGTIMEOUT : PEER_PONGTIMEOUT)