Skip to content

Commit 61afe91

Browse files
Magd BayoumiMagd Bayoumi
authored andcommitted
fixup! fixup! fixup! fixup! fixup! fix: handle http2 goaway race conditions
1 parent 5cf1d0c commit 61afe91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

httpcore/_sync/http2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def _read_incoming_data(
522522
raise ConnectionGoingAway(
523523
"Server disconnected after GOAWAY",
524524
last_stream_id=last_stream_id if last_stream_id else 0,
525-
error_code=self._connection_terminated.error_code,
525+
error_code=self._connection_terminated.error_code, # type: ignore[arg-type]
526526
request_stream_id=stream_id,
527527
headers_sent=phase["headers_sent"],
528528
body_sent=phase["body_sent"],

0 commit comments

Comments
 (0)