mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 07:21:46 +00:00
Update server.py
This commit is contained in:
parent
85f2b19b46
commit
3ffc8ca29c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user