mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Merge #2192
2192: Reserve bytes for the type and token r=heinrich5991 a=Learath2 I'm guessing this also caused #2149 It just required a weird combination of players and name length to trigger (or max packet)... Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
commit
6c1728f3b8
|
@ -1728,7 +1728,7 @@ void CServer::CacheServerInfo(CCache *pCache, int Type, bool SendClients)
|
|||
|
||||
if(Type == SERVERINFO_EXTENDED)
|
||||
{
|
||||
if(pp.Size() >= NET_MAX_PAYLOAD)
|
||||
if(pp.Size() >= NET_MAX_PAYLOAD - 18) // 8 bytes for type, 10 bytes for the largest token
|
||||
{
|
||||
// Retry current player.
|
||||
i--;
|
||||
|
|
Loading…
Reference in a new issue