Skip to content

Commit

Permalink
fix exception ssl.SSLEOFError
Browse files Browse the repository at this point in the history
  • Loading branch information
jczic committed Jan 13, 2024
1 parent 8340ebb commit 1525f08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions XAsyncSockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ def OnReadyForWriting(self) :
if self._wrBufView :
try :
n = self._socket.send(self._wrBufView)
except ssl.SSLEOFError :
self._close()
return
except :
return
self._wrBufView = self._wrBufView[n:]
Expand Down

0 comments on commit 1525f08

Please sign in to comment.