Add an option to change ping timeout time.

Fix #979
This commit is contained in:
Alexey Sokolov
2016-12-26 15:49:26 +00:00
parent d9c1da8a68
commit b666931883
9 changed files with 67 additions and 26 deletions

View File

@@ -388,7 +388,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(CIRCNetwork::NO_TRAFFIC_TIMEOUT, TMO_READ);
SetTimeout(User.GetNoTrafficTimeout(), TMO_READ);
SetSockName("USR::" + m_pUser->GetUserName());
SetEncoding(m_pUser->GetClientEncoding());