mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-28 14:03:51 +00:00
fix: increase packet parse/callback budgets to fix Warden module stall
Warden module download (18756 bytes, 38 chunks of 500 bytes) stalled at 32 chunks because the per-pump packet parse budget was 16 — after two 2ms pump cycles (32 packets), the TCP receive buffer filled and the server stopped sending. Character list never arrived. - kDefaultMaxParsedPacketsPerUpdate: 16 → 64 - kDefaultMaxPacketCallbacksPerUpdate: 6 → 48 Also adds WARNING-level diagnostic logs for auth pipeline packets and Warden module download progress (previously DEBUG-only, invisible in production logs).
This commit is contained in:
parent
6a46e573bb
commit
ed8ff5c8ac
3 changed files with 7 additions and 6 deletions
|
|
@ -380,7 +380,7 @@ void WardenHandler::handleWardenData(network::Packet& packet) {
|
|||
std::vector<uint8_t> resp = { 0x00 }; // WARDEN_CMSG_MODULE_MISSING
|
||||
sendWardenResponse(resp);
|
||||
wardenState_ = WardenState::WAIT_MODULE_CACHE;
|
||||
LOG_DEBUG("Warden: Sent MODULE_MISSING, waiting for module data chunks");
|
||||
LOG_WARNING("Warden: Sent MODULE_MISSING for module size=", wardenModuleSize_, ", waiting for data chunks");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -404,7 +404,7 @@ void WardenHandler::handleWardenData(network::Packet& packet) {
|
|||
decrypted.begin() + 3,
|
||||
decrypted.begin() + 3 + chunkSize);
|
||||
|
||||
LOG_DEBUG("Warden: MODULE_CACHE chunk ", chunkSize, " bytes, total ",
|
||||
LOG_WARNING("Warden: MODULE_CACHE chunk ", chunkSize, " bytes, total ",
|
||||
wardenModuleData_.size(), "/", wardenModuleSize_);
|
||||
|
||||
// Check if module download is complete
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue