Update server.py

This commit is contained in:
Namhyeon Go 2024-02-18 07:41:17 +09:00 committed by GitHub
parent 288ae6b883
commit 24a48812b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -194,7 +194,7 @@ def proxy_server(webserver, port, scheme, method, url, conn, addr, data):
# Wait to see if there is more data to transmit
if len(data) == buffer_size:
conn.settimeout(5)
conn.settimeout(1)
while True:
try:
chunk = conn.recv(buffer_size)