From 58a7e4a4d7449d58732e024ea07ea3623c10d8de Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 1 Feb 2026 22:28:31 +0300 Subject: 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)... --- config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.h') 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) -- cgit 1.4.1