Skip to content

Improve connection state logging #2574

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 2 commits into from
Mar 28, 2025
Merged

Improve connection state logging #2574

merged 2 commits into from
Mar 28, 2025

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 28, 2025

Intended to align connection state with log messages, so update state first + log state change second.
This moves state change to CONNECTING prior to sock initialization, which means that close() can now be called without a sock, and that means that the sock passed to state_change_callback can be None, though only when disconnected.

@dpkp dpkp merged commit a520232 into master Mar 28, 2025
18 checks passed
@dpkp dpkp deleted the dpkp/conn-state-logging branch March 28, 2025 15: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