1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-06 02:05:30 +01:00

Extend check for lingering clinets

This commit is contained in:
sfan5
2025-05-27 11:31:16 +02:00
parent 957ebf7368
commit 9ce9d7f433
4 changed files with 12 additions and 11 deletions

View File

@@ -495,7 +495,8 @@ public:
m_env = env;
}
static std::string state2Name(ClientState state);
static const char *state2Name(ClientState state);
protected:
class AutoLock {
public:
@@ -526,5 +527,7 @@ private:
static const char *statenames[];
static constexpr int LINGER_TIMEOUT = 10;
// Note that this puts a fixed timeout on the init & auth phase for a client.
// (lingering is enforced until CS_InitDone)
static constexpr int LINGER_TIMEOUT = 12;
};