From 297281dea5166aa2dd12fd98e9148562645d4725 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 16 May 2014 11:26:41 -0400 Subject: Fixed some issues in TCP_server. Timed out connections now remove themselves correctly. If a peer with the same public key as another tries to connect, the old connection is killed. --- toxcore/TCP_server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/TCP_server.h') diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h index 136231d0..fc8c234b 100644 --- a/toxcore/TCP_server.h +++ b/toxcore/TCP_server.h @@ -59,7 +59,7 @@ /* frequency to ping connected nodes and timeout in seconds */ #define TCP_PING_FREQUENCY 30 -#define TCP_PING_TIMEOUT 20 +#define TCP_PING_TIMEOUT 10 enum { TCP_STATUS_NO_STATUS, -- cgit v1.2.3