Skip to content

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