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

document state change timing #181

Open
belm0 opened this issue Mar 18, 2023 · 0 comments
Open

document state change timing #181

belm0 opened this issue Mar 18, 2023 · 0 comments

Comments

@belm0
Copy link
Contributor

belm0 commented Mar 18, 2023

I wasn't able to find anything in the documentation about when ConnectionState changes, especially for the case where remote is initiating CloseConnection. It's significant in light of the recent change b0efe55, which will raise LocalProtocolError if you attempt send a message during REMOTE_CLOSING, etc.

For CloseConnection initiated by the remote, it appears that the state will change when the event is yielded from events(). I don't think the documentation should assume this is obvious, because one might think that state changes at the time of receive_data().

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

No branches or pull requests

1 participant