From 9ff031194834a86b6fcb7d0bea4353e8fb562f73 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 28 Jan 2025 18:09:15 -0800 Subject: [PATCH] Update server.py --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index 36987cf..fcc99a6 100644 --- a/server.py +++ b/server.py @@ -258,6 +258,11 @@ def session(connection, client, ip, isssl=False): if not data: cause = "Remote host closed the connection" break + except ssl.SSLEOFError:: + pass + except ssl.SSLZeroReturnError: + cause = "Remote host closed the connection" + break except Exception as ex: cause = "Read error: " + str(ex) break