Raise our IRC connection timeouts

ZNC will now send a PING if the connection was idle for 270 to 300 seconds.
After 540 seconds (that is, about 270 to 240 seconds later) the timeout is
triggered and ZNC reconnects.

These values are "inspired" by the values eggdrop uses.

The old timeouts were 180 to 210 secs for the PING and 240 secs for the timeout.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2011-04-02 23:03:33 +02:00
parent f0bf7134ec
commit d2f3b8c508
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -663,7 +663,7 @@ void CClient::AcceptLogin(CUser& User) {
// Set our proper timeout and set back our proper timeout mode
// (constructor set a different timeout and mode)
SetTimeout(240, TMO_READ);
SetTimeout(540, TMO_READ);
SetSockName("USR::" + m_pUser->GetUserName());