mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix: increase world packet size limit from 16KB to 32KB
The 0x4000 (16384) limit was too conservative and could disconnect the client when the server sends large packets such as SMSG_GUILD_ROSTER with 500+ members (~30KB) or SMSG_AUCTION_LIST with many results. Increase to 0x8000 (32768) which covers all normal gameplay while still protecting against framing desync from encryption errors.
This commit is contained in:
parent
f712d3de94
commit
7c5bec50ef
1 changed files with 1 additions and 1 deletions
|
|
@ -668,7 +668,7 @@ void WorldSocket::tryParsePackets() {
|
|||
closeSocketNoJoin();
|
||||
return;
|
||||
}
|
||||
constexpr uint16_t kMaxWorldPacketSize = 0x4000;
|
||||
constexpr uint16_t kMaxWorldPacketSize = 0x8000; // 32KB — allows large guild rosters, auction lists
|
||||
if (size > kMaxWorldPacketSize) {
|
||||
LOG_ERROR("World packet framing desync: oversized packet size=", size,
|
||||
" rawHdr=", std::hex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue