You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.
Right now if hyper hits an error it just throws exceptions. This leaves the connection in an undefined state, and is fundamentally unusable from then on. We should start handling this better. 'Better' means two things:
Errors on a single stream should cause us to send RST_STREAM frames. Exceptions should still be thrown, but the connection should be OK.
Errors that affect the whole connection should cause us to send GOAWAY with an appropriate error code, and then tear the connection down.
The text was updated successfully, but these errors were encountered:
The likely best way to handle this is to wrap affected methods in decorators that catch exceptions. We should provide our own set of exceptions that can carry appropriate HTTP/2.0 failure codes on them. Given such an exception, we can use the appropriate frame and code. Unexpected exceptions will get a generic error code.
Right now if
hyper
hits an error it just throws exceptions. This leaves the connection in an undefined state, and is fundamentally unusable from then on. We should start handling this better. 'Better' means two things:RST_STREAM
frames. Exceptions should still be thrown, but the connection should be OK.GOAWAY
with an appropriate error code, and then tear the connection down.The text was updated successfully, but these errors were encountered: