Author: Uli Schlachter <psychon@...>
Date: 2014-07-14 (Mon, 14 Jul 2014)
Less magic numbers for timeout settings
Currently the connection timeout handling of znc uses three magic numbers, each
of which is at least repeated in two unrelated places. This commits defines the
numbers in CIRCNetwork and makes the other places just use this number.
This also renames PING_TIMEOUT to PING_FREQUENCY because I feel that describes
this constant better.
I am not really happy about the name NO_TRAFFIC_TIMEOUT that is used for the
real timeout, but I couldn't think of a better name. PING_TIMEOUT isn't good
because that sounds like the time between sending a PING and the resulting
Signed-off-by: Uli Schlachter <psychon@...>
Get latest updates about Open Source Projects, Conferences and News.