diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-16 11:26:41 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-16 11:26:41 -0400 |
commit | 297281dea5166aa2dd12fd98e9148562645d4725 (patch) | |
tree | ddbd20c966487b2f66a07eca7986e9d1beb426fc /toxcore/TCP_server.h | |
parent | a5141679527b10de8cc6e0aa211873706abac149 (diff) |
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.
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r-- | toxcore/TCP_server.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
59 | 59 | ||
60 | /* frequency to ping connected nodes and timeout in seconds */ | 60 | /* frequency to ping connected nodes and timeout in seconds */ |
61 | #define TCP_PING_FREQUENCY 30 | 61 | #define TCP_PING_FREQUENCY 30 |
62 | #define TCP_PING_TIMEOUT 20 | 62 | #define TCP_PING_TIMEOUT 10 |
63 | 63 | ||
64 | enum { | 64 | enum { |
65 | TCP_STATUS_NO_STATUS, | 65 | TCP_STATUS_NO_STATUS, |