Skip to content

minecraft: Bound the port-following ping separately from the dial - #529

Open
veillsd wants to merge 1 commit into
Sandertv:masterfrom
veillsd:ping-timeout
Open

veillsd wants to merge 1 commit into
Sandertv:masterfrom
veillsd:ping-timeout

Conversation

@veillsd

@veillsd veillsd commented Sep 28, 2026 •

Copy link
Copy Markdown

If the unconnected ping gets dropped it currently eats the whole dial deadline, so a server that is actually up fails to connect, this gives the ping its own 3s bound and leaves the rest for the connection sequence, which retransmits anyway.

Tested against a local listener behind a forwarder that drops pings: 20s timeout before, connects in 3s after. Ran into this with an Aternos server that wasn't answering pings.

@veillsd
veillsd marked this pull request as ready for review September 28, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant