ModernUO/Projects/Server/Network
Kamron Batman a4522b9d43
fix: Fixes stalled connections and infinite throttle (#1796)
> [!Warning]
> **Developer Warning**
> The `PacketThrottle` callback return value is now reversed. `true` indicates the connection is _throttled_.

### Summary
- Fixes an issue where connections get stalled forever
- Fixes an issue where the throttler is not working properly
- Removes account attack limiter
- Rewrites IP limiter
- Removes IP restrictions (they weren't used, and not practical)
- Fixes issue where IP limiter was counting before firewall was blocking.

View without whitespace:
https://github.com/modernuo/ModernUO/pull/1796/files?diff=split&w=1
2024-05-27 21:32:55 -07:00
..
Firewall fix: Fixes stuck connections (#1708) 2024-04-03 08:14:41 -07:00
NetState fix: Fixes stalled connections and infinite throttle (#1796) 2024-05-27 21:32:55 -07:00
Packets fix: Fixes stalled connections and infinite throttle (#1796) 2024-05-27 21:32:55 -07:00
EncodedPacketHandler.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
EncodedReader.cs feat: Adds a memory mirrored ring buffer for networking. (#1533) 2023-10-09 00:57:53 -07:00
IPLimiter.cs fix: Fixes stalled connections and infinite throttle (#1796) 2024-05-27 21:32:55 -07:00
MovementThrottle.cs fix: Fixes stalled connections and infinite throttle (#1796) 2024-05-27 21:32:55 -07:00
NetworkCompression.cs chore: Cleans up unused imports (#1550) 2023-10-15 11:45:42 -07:00
PacketHandler.cs fix: Fixes stalled connections and infinite throttle (#1796) 2024-05-27 21:32:55 -07:00
PacketUtilities.cs fix: Fixes sending packets and sidesteps a major issue with stackalloc and PGO in .NET 8 (#1607) 2023-11-21 12:18:20 -08:00
PingServer.cs fix: Fixes stuck connections (#1708) 2024-04-03 08:14:41 -07:00
Pipe.cs feat: Adds a memory mirrored ring buffer for networking. (#1533) 2023-10-09 00:57:53 -07:00
ServerInfo.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
TcpServer.cs fix: Fixes stalled connections and infinite throttle (#1796) 2024-05-27 21:32:55 -07:00