Skip to content

Commit

Permalink
🔧 also except ConnectionResetError for conn upgrade (especially on Wi…
Browse files Browse the repository at this point in the history
…ndows)
  • Loading branch information
Ousret committed Oct 13, 2024
1 parent f54a348 commit 2ef6fb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/urllib3/backend/_async/hface.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ async def _post_conn(self) -> None: # type: ignore[override]
TimeoutError,
SocketTimeout,
ConnectionRefusedError,
ConnectionResetError,
) as e:
if (
isinstance(self._protocol, HTTPOverQUICProtocol)
Expand Down
1 change: 1 addition & 0 deletions src/urllib3/backend/hface.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ def _post_conn(self) -> None:
TimeoutError,
SocketTimeout,
ConnectionRefusedError,
ConnectionResetError,
) as e:
if self.__alt_authority is not None:
# we want to remove invalid quic cache capability
Expand Down

0 comments on commit 2ef6fb3

Please sign in to comment.