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