Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep trying to connect to draining QUIC servers #14863

Closed
wants to merge 2 commits into from

Conversation

icing
Copy link
Contributor

@icing icing commented Sep 11, 2024

We once established a connect retry logic in our IP Eyeballing that made a second attempt when the filter returned a WEIRD_SERVER_REPLY. QUIC filters use that when the server is responding with a "draining" connect. This happens when the server shuts down or gracefully restarts. The problem for QUIC is that UDP packets can not be routed atomically to a new process like for TCP. Such "draining" responses seem hard to avoid.

The previous approach of just retrying once leads to timing problems. When curl is faster than the server, the second attempt will also fail and abort the connect. With this PR, the happy eyeballing will continue retrying the available addresses that report draining - until success or the overall connect timeout. This is far more reliable.

Remove the old reconnect_at variables in the QUIC filters that are no longer used.

Enable test_03 for restarting servers in CI. Hopefully those work there reliable now.

Do not give up connect on servers that are in draining state.
This might indicate the QUIC server restarting and the UDP
packet routing still hitting the instance shutting down.

Instead keep on connecting until the overall TIMEOUT fires.
Since QUIC filters no longer set `reconnect_at`, remove it.

Let test_03 tests run in CI, should work better now.
@github-actions github-actions bot added the tests label Sep 11, 2024
@bagder bagder closed this in 283af03 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants