Module: ngircd.git Branch: master Commit: 73fd26e9fa708727e3f870052df0cc32e295bfc0 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=73fd2...
Author: Alexander Barton alex@barton.de Date: Sun Apr 25 12:54:13 2010 +0200
Don't reset counters on RESTART
When ngIRCd restarts, all the connection counters are preserved now, as well as the command counters for example.
It's unclear if resetting or not resetting is the "correct" behaviour, but it's quite clear that the behaviour should be consistent for all the counters ngIRCd uses ...
And initializing "WCounter", the global but temporary write counter, is not necessarry at all: it is initialized (reset) before its use in the command parser (see parse.c).
---
src/ngircd/conn.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 0861b08..4367754 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -389,10 +389,6 @@ Conn_Init( void )
for (i = 0; i < Pool_Size; i++) Init_Conn_Struct(i); - - /* Initialize global counters (required after RESTART command!) */ - NumConnections = NumConnectionsMax = NumConnectionsAccepted = 0; - WCounter = 0; } /* Conn_Init */