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 77e7975 commit 40fc58f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MicroWebSrv2/libs/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 40fc58f

Please sign in to comment.