[GH-ISSUE #5901] Official server: new connections reset once the connection cap fills #1878

Open
opened 2026-11-02 15:50:19 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ludovic111 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5901

Originally assigned to: @ludovic111 on GitHub.

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Since 09:00Z the official server resets most new connections (os error 10054 on Windows, MeesRay at 10:22Z; our status pings to port 24454 were reset 16/16 at 11:20Z). Players already in the game play normally.

Cause: the connection cap from #5776 (max players + 64 spare) is full. Something holds the places with connections that never reach the game, and each new socket past the cap is dropped. A same-binary restart at 11:23Z cleared it; the cap was full again 8 minutes later. A local bisect of every kind of pre-play connection (status, login, configuration, half-open) found no leak in our code, so the holders are outside sockets.

Fix: at most 10 connections per address (local and private addresses exempt), a 10 s limit for handshake, status and login, and when the server is full, close the connection that has waited longest (over 2 s) before play to admit the new one. A log line every 60 s reports turned-away connections and the busiest addresses.

Originally created by @ludovic111 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5901 Originally assigned to: @ludovic111 on GitHub. > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Since 09:00Z the official server resets most new connections (`os error 10054` on Windows, MeesRay at 10:22Z; our status pings to port 24454 were reset 16/16 at 11:20Z). Players already in the game play normally. Cause: the connection cap from #5776 (max players + 64 spare) is full. Something holds the places with connections that never reach the game, and each new socket past the cap is dropped. A same-binary restart at 11:23Z cleared it; the cap was full again 8 minutes later. A local bisect of every kind of pre-play connection (status, login, configuration, half-open) found no leak in our code, so the holders are outside sockets. Fix: at most 10 connections per address (local and private addresses exempt), a 10 s limit for handshake, status and login, and when the server is full, close the connection that has waited longest (over 2 s) before play to admit the new one. A log line every 60 s reports turned-away connections and the busiest addresses.
Author
Owner

@ludovic111 commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6557463488 --> @ludovic111 commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Author
Owner

@ludovic111 commented on GitHub (Nov 1, 2026):

🤖 Agent: reopened for the follow-up #5930 (writes time out; the turned-away report says where the places are held). #5923 is live since 12:22Z and joins work.

<!-- gh-comment-id:6558109021 --> @ludovic111 commented on GitHub (Nov 1, 2026): 🤖 Agent: reopened for the follow-up #5930 (writes time out; the turned-away report says where the places are held). #5923 is live since 12:22Z and joins work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1878
No description provided.