ModernUO/Projects/UOContent/Network
Kamron Batman 5b7304addd
refactor: review pass over the auto-denylist ring
Three things the review turned up, no behaviour change:

Hold recomputed address.ToUInt128() three times where the original hoisted
it to a local. Restored.

Drain cleared _warnedFull on every iteration; it now clears once, after,
and only when something was actually retired. The store was inside the loop
whose cost this whole design exists to keep small.

Grow doubled without a ceiling, so a 324,449 cap reserved 524,288 ring slots
-- 4.8 MB that can never be used. Push only runs below the cap, so the ring
never needs more than maxEntries; growth is capped there. Progress is still
guaranteed: Grow is only reached when capacity == _ringCount, which is at
most maxEntries - 1 at that point, so the capped size is always larger.

Adds a test for that last one, since a cap that is not a power of two is
where a wrapped write would run off the end, and notes the new default in
the configuration table.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 22:37:25 -07:00
..
AutoDenylist refactor: review pass over the auto-denylist ring 2026-08-13 22:37:25 -07:00
Blocklist refactor: drop the deprecated allowlistFiles key from blocklist config 2026-08-13 21:27:11 -07:00
CrowdSec docs: tighten the comments across the ban subsystem 2026-08-13 21:19:50 -07:00
Firewall docs: tighten the comments across the ban subsystem 2026-08-13 21:19:50 -07:00
LoginAllowlist perf: stop the auto-denylist re-sweeping for every rejected address 2026-08-13 21:42:33 -07:00
ManualAllowlist refactor: drop the deprecated allowlistFiles key from blocklist config 2026-08-13 21:27:11 -07:00
Packets perf(login): run password hashing on a parked worker thread (#2566) 2026-08-09 00:13:34 -07:00
BanExemptions.cs refactor: rename FileAllowlist to ManualAllowlist 2026-08-13 21:26:06 -07:00
ContainerGridPacketHandler.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
EntityPackets.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
FreeshardProtocol.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
GameServer.cs fix: Bind the login auth id to its account and drop the redundant verify (#2564) 2026-08-08 09:25:42 -07:00
GatewayServer.cs feat: Moves network related events to UOContent using code generation (#1945) 2024-09-06 16:57:10 -07:00
MapUO.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
NetworkCommands.cs fix: Adds command help, webpage, and fixes issues with other commands (#1669) 2024-02-10 00:19:19 -08:00
ProtocolExtensions.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
UOGateway.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00