Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Aug 28, 2020
1 parent c0c9234 commit 6dbdc06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/urllib3/connectionpool.py
Expand Up @@ -401,11 +401,11 @@ def _make_request(
pass
except Exception as e:
print("ERROR=", e, e.args, "errno=", getattr(e, "errno", None))
# Python 2, Windows
# Python 2, Windows, macOS
# EPIPE and ESHUTDOWN are BrokenPipeError on Python 2, and EPROTOTYPE is needed on macOS
# https://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/
# Windows is ConnectionAborted which can mean that a connection hung up.
if e.errno not in {
if getattr(e, "errno", None) not in {
errno.EPIPE,
errno.ESHUTDOWN,
errno.EPROTOTYPE,
Expand Down

0 comments on commit 6dbdc06

Please sign in to comment.