From 3ffc8ca29cdbcfc00332d7f2b7049016bdfea9e8 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 18 Nov 2024 21:05:07 +0900 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 1a0db4b..f23e70a 100644 --- a/server.py +++ b/server.py @@ -346,7 +346,7 @@ def proxy_server( # send following chunks buffered = b"" - conn.settimeout(1) + conn.settimeout(connection_timeout) while True: try: chunk = conn.recv(buffer_size) @@ -669,7 +669,7 @@ def start(): # Main Program if not data: data = b'' except socket.timeout: - logger.warning(f"No data received from {addr}. Attempting to request data.") + logger.warning(f"No data received from " + ("%s:%s" % addr) + ". Attempting to request data.") data = b'' return data