mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
catch OpenSSL SysCallError, refs #4985
This commit is contained in:
parent
96f77453cc
commit
efd2980b8a
@ -308,7 +308,7 @@ class _TLSLayer(tunnel.TunnelLayer):
|
|||||||
def send_data(self, data: bytes) -> layer.CommandGenerator[None]:
|
def send_data(self, data: bytes) -> layer.CommandGenerator[None]:
|
||||||
try:
|
try:
|
||||||
self.tls.sendall(data)
|
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.
|
# The other peer may still be trying to send data over, which we discard here.
|
||||||
pass
|
pass
|
||||||
yield from self.tls_interact()
|
yield from self.tls_interact()
|
||||||
|
Loading…
Reference in New Issue
Block a user