Skip to content

Client connection / maybe_refresh_metadata changes #2507

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

Merged
merged 6 commits into from
Mar 2, 2025
Merged

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 2, 2025

Renames _maybe_connect -> _init_connect and only attempts to progress connection state if connection is currently disconnected. This moves all secondary connection work into the selector / poll loop. Maybe refresh metadata now runs after the connecting loop, calls _init_connect directly, and returns a retry timeout if connection fails immediately. This should help fix a race condition where a quick failing connection caused us to block indefinitely in the poll selector.

@dpkp dpkp merged commit a3f34ef into master Mar 2, 2025
16 checks passed
@dpkp dpkp deleted the dpkp/init-connect branch March 2, 2025 18:25
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