Skip to content

Improve CloseConnection behavior (close #59) - #92

Closed
touilleMan wants to merge 1 commit into
python-hyper:masterfrom
touilleMan:safe-close-issue-59
Closed

touilleMan wants to merge 1 commit into
python-hyper:masterfrom
touilleMan:safe-close-issue-59

Conversation

@touilleMan

Copy link
Copy Markdown
Contributor

This introduce the ConnectionStateError exception that will be raised
when send a CloseConnection event when the connection is not in OPEN state.
On top of that a WSConnection.opened property has been added to help
user determine when it should close the connection.

This introduce the ConnectionStateError exception that will be raised
when send a CloseConnection event when the connection is not in OPEN state.
On top of that a WSConnection.opened property has been added to help
user determine when it should close the connection.
@touilleMan touilleMan mentioned this pull request Dec 29, 2018
@pgjones pgjones mentioned this pull request Dec 30, 2018
@pgjones

pgjones commented Dec 30, 2018

Copy link
Copy Markdown
Member

@touilleMan Thanks, could you comment on the discussion in #85? We are going through a rework of the API at the moment and this touches part of it.

@pgjones

pgjones commented Jan 6, 2019

Copy link
Copy Markdown
Member

@touilleMan Thanks for this PR. I've created a general LocalProtocolError and then built this functionality on top in 2b38d3a. Is it missing anything?

@touilleMan

Copy link
Copy Markdown
Contributor Author

@pgjones yep, looks good to me ;-)

I guess we can close this PR then

@touilleMan touilleMan closed this Jan 6, 2019
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.

2 participants