Skip to content

Commit

Permalink
Add an observed ECONNRESET errno 54 from macOS 13 and Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
wbond committed Aug 16, 2023
1 parent be2c8de commit 73372af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscrypto/_openssl/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ def _raw_write(self):
sent = self._socket.send(to_write)
except (socket_.error) as e:
# Handle ECONNRESET and EPIPE
if e.errno == 104 or e.errno == 32:
if e.errno == 104 or e.errno == 54 or e.errno == 32:
raise_disconnect = True
# Handle EPROTOTYPE. Newer versions of macOS will return this
# if we try to call send() while the socket is being torn down
Expand Down

0 comments on commit 73372af

Please sign in to comment.