mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 03:07:18 +00:00
catch OpenSSL SysCallError, refs #4985
This commit is contained in:
parent
96f77453cc
commit
efd2980b8a
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ class _TLSLayer(tunnel.TunnelLayer):
|
|||
def send_data(self, data: bytes) -> layer.CommandGenerator[None]:
|
||||
try:
|
||||
self.tls.sendall(data)
|
||||
except SSL.ZeroReturnError:
|
||||
except (SSL.ZeroReturnError, SSL.SysCallError):
|
||||
# The other peer may still be trying to send data over, which we discard here.
|
||||
pass
|
||||
yield from self.tls_interact()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue