mirror of
https://github.com/znc/znc.git
synced 2026-05-06 21:42:28 +02:00
Changed ping timers and timeout settings to use more reasonable values. Also changed timeout type for irc and client sockets.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1297 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -679,7 +679,7 @@ void CClient::LoginTimeout() {
|
||||
|
||||
void CClient::Connected() {
|
||||
DEBUG_ONLY(cout << GetSockName() << " == Connected();" << endl);
|
||||
SetTimeout(900); // Now that we are connected, let nature take its course
|
||||
SetTimeout(240, TMO_READ); // Now that we are connected, let nature take its course
|
||||
}
|
||||
|
||||
void CClient::ConnectionRefused() {
|
||||
@@ -687,6 +687,7 @@ void CClient::ConnectionRefused() {
|
||||
}
|
||||
|
||||
void CClient::Disconnected() {
|
||||
DEBUG_ONLY(cout << GetSockName() << " == Disconnected()" << endl);
|
||||
if (m_pUser) {
|
||||
m_pUser->UserDisconnected(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user