Skip to content

Commit

Permalink
Fix a problem with timeouts in anyio backend
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeler committed Nov 26, 2020
1 parent 6abf663 commit a21e610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpcore/_backends/anyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ async def open_tcp_stream(
connect_timeout = timeout.get("connect")
unicode_host = hostname.decode("utf-8")
exc_map = {
OSError: ConnectError,
TimeoutError: ConnectTimeout,
OSError: ConnectError,
BrokenResourceError: ConnectError,
}

Expand Down Expand Up @@ -168,8 +168,8 @@ async def open_uds_stream(
connect_timeout = timeout.get("connect")
unicode_host = hostname.decode("utf-8")
exc_map = {
OSError: ConnectError,
TimeoutError: ConnectTimeout,
OSError: ConnectError,
BrokenResourceError: ConnectError,
}

Expand Down

0 comments on commit a21e610

Please sign in to comment.