Skip to content

Improve connection state logging#2574

Merged
dpkp merged 2 commits into
masterfrom
dpkp/conn-state-logging
Mar 28, 2025
Merged

Improve connection state logging#2574
dpkp merged 2 commits into
masterfrom
dpkp/conn-state-logging

Conversation

@dpkp

@dpkp dpkp commented Mar 28, 2025

Copy link
Copy Markdown
Owner

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
@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