Skip to content

Conversation

@lovelydinosaur
Copy link
Contributor

Revisit #313 - looks like this behaviour got lost in the 0.14 redesign.

Currently if the server is in a listening state, then disconnects without sending a response, then users will see the following error...

httpcore.RemoteProtocolError: can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE

Which really isn't informative as an end-user. We probably would prefer to special case this particular transition as a ConnectError. It's not quite the same as a network ConnectError, since it occurs in cases where the connection was already established and hanging around, but is closed once it an incoming request is sent.

@lovelydinosaur lovelydinosaur merged commit 018f52e into master Jan 12, 2022
@lovelydinosaur lovelydinosaur deleted the more-helpful-exception-on-server-disconnect branch January 12, 2022 14:21
@lovelydinosaur lovelydinosaur mentioned this pull request Jan 18, 2022
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