mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
We used to start a dedicated timer for a new client socket that would make sure the client is disconnected if it didn't successfully log in after 60 seconds. This is now replaced by using Csocket's built-in timeout support. When a new client connects we SetTimeout(60, 0); which means that Timeout() will be called in 60 seconds, no matter what. The second argument is a bitmask which says on which events the timeout should be reset (TMO_READ, TMO_WRITE, TMO_ACCEPT, TMO_ALL). Once the client logs in successfully, CClient::AcceptLogin() now sets back the proper timeout (SetTimeout(240, TMO_READ);) which was set in Connected() before. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1622 726aef4b-f618-498e-8847-2d620e286838
22 KiB
22 KiB