update hyper-h2 exception handling

This commit is contained in:
Thomas Kriechbaumer 2016-01-18 21:44:27 +01:00
parent 24641d8561
commit db38e5a1cc

View File

@ -158,7 +158,7 @@ class SafeH2Connection(H2Connection):
with self.lock: with self.lock:
try: try:
self.reset_stream(stream_id, error_code) self.reset_stream(stream_id, error_code)
except h2.exceptions.ProtocolError: except h2.exceptions.StreamClosedError:
# stream is already closed - good # stream is already closed - good
pass pass
self.conn.send(self.data_to_send()) self.conn.send(self.data_to_send())