Fix client disconnect from leftover socket recv timeout

Clear the 5-second SO_RCVTIMEO that was set during the connection
handshake but never removed. The timeout persisted into the game
session, causing the client to disconnect whenever the server paused
for longer than 5 seconds (e.g. autosave, chunk I/O).

Also update README with chunk unloading and connection stability fixes.
This commit is contained in:
itsRevela
2026-03-25 22:39:01 -05:00
parent c264262b66
commit 6d28177e4c
3 changed files with 13 additions and 0 deletions

View File

@@ -927,6 +927,7 @@ bool ServerChunkCache::tick()
int ix = chunk->x + XZOFFSET;
int iz = chunk->z + XZOFFSET;
int idx = ix * XZSIZE + iz;
delete m_unloadedCache[idx];
m_unloadedCache[idx] = chunk;
cache[idx] = nullptr;
}