Fixing another guest login issue. Setting login timeout to 60 seconds to allow the user to enter the password.
This commit is contained in:
@@ -1095,6 +1095,9 @@ ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost:
|
|||||||
OCTET_STRING_fromBuf(&guestLogin->nickName,
|
OCTET_STRING_fromBuf(&guestLogin->nickName,
|
||||||
context.GetPlayerName().c_str(),
|
context.GetPlayerName().c_str(),
|
||||||
context.GetPlayerName().length());
|
context.GetPlayerName().length());
|
||||||
|
|
||||||
|
client->GetSender().Send(context.GetSessionData(), init);
|
||||||
|
client->SetState(ClientStateWaitSession::Instance());
|
||||||
}
|
}
|
||||||
// If the player is not a guest, authenticate.
|
// If the player is not a guest, authenticate.
|
||||||
else
|
else
|
||||||
@@ -1125,10 +1128,9 @@ ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost:
|
|||||||
MD5_DATA_SIZE);
|
MD5_DATA_SIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
client->GetSender().Send(context.GetSessionData(), init);
|
||||||
|
client->SetState(ClientStateWaitAuthChallenge::Instance());
|
||||||
}
|
}
|
||||||
|
|
||||||
client->GetSender().Send(context.GetSessionData(), init);
|
|
||||||
client->SetState(ClientStateWaitAuthChallenge::Instance());
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
#define SERVER_INIT_AVATAR_CLIENT_LOCK_SEC 30 // Forbid a client to send an additional avatar.
|
#define SERVER_INIT_AVATAR_CLIENT_LOCK_SEC 30 // Forbid a client to send an additional avatar.
|
||||||
|
|
||||||
#define SERVER_INIT_SESSION_TIMEOUT_SEC 20
|
#define SERVER_INIT_SESSION_TIMEOUT_SEC 60
|
||||||
#define SERVER_TIMEOUT_WARNING_REMAINING_SEC 60
|
#define SERVER_TIMEOUT_WARNING_REMAINING_SEC 60
|
||||||
#define SERVER_SESSION_ACTIVITY_TIMEOUT_SEC 1800 // 30 min, MUST be > SERVER_TIMEOUT_WARNING_REMAINING_SEC
|
#define SERVER_SESSION_ACTIVITY_TIMEOUT_SEC 1800 // 30 min, MUST be > SERVER_TIMEOUT_WARNING_REMAINING_SEC
|
||||||
#define SERVER_SESSION_FORCED_TIMEOUT_SEC 86400 // 1 day, should be quite large.
|
#define SERVER_SESSION_FORCED_TIMEOUT_SEC 86400 // 1 day, should be quite large.
|
||||||
|
|||||||
Reference in New Issue
Block a user