From 1525f08c188bbd2519a81161051ffbd64964624b Mon Sep 17 00:00:00 2001 From: jczic Date: Sat, 13 Jan 2024 02:24:40 +0100 Subject: [PATCH] fix exception ssl.SSLEOFError --- XAsyncSockets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XAsyncSockets.py b/XAsyncSockets.py index e2dc707..349f577 100644 --- a/XAsyncSockets.py +++ b/XAsyncSockets.py @@ -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:]