mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 09:51:06 +00:00
Update server.py
This commit is contained in:
parent
288ae6b883
commit
24a48812b0
|
@ -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
|
# Wait to see if there is more data to transmit
|
||||||
if len(data) == buffer_size:
|
if len(data) == buffer_size:
|
||||||
conn.settimeout(5)
|
conn.settimeout(1)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
chunk = conn.recv(buffer_size)
|
chunk = conn.recv(buffer_size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user