Skip to content

document state change timing #181

Description

@belm0

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().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions