diff --git a/config_webrx.py b/config_webrx.py index f4f3de5..6b1800f 100755 --- a/config_webrx.py +++ b/config_webrx.py @@ -24,6 +24,7 @@ This file is part of OpenWebRX. #Server settings web_port=8073 server_hostname="localhost" # If this contains an incorrect value, the web UI may freeze on load (it can't open websocket) +max_clients=20 #Web GUI configuration receiver_name="[Callsign]" diff --git a/openwebrx.py b/openwebrx.py index 1d7b44a..8bbc0ed 100755 --- a/openwebrx.py +++ b/openwebrx.py @@ -202,7 +202,7 @@ def cleanup_clients(): for i in range(0,len(clients)): i-=correction #print "cleanup_clients:: len(clients)=", len(clients), "i=", i - if (not clients[i].ws_started) and (time.time()-clients[i].gen_time)>180: + if (not clients[i].ws_started) and (time.time()-clients[i].gen_time)>45: print "[openwebrx] cleanup_clients :: client timeout to open WebSocket" close_client(i, False) correction+=1 @@ -385,6 +385,14 @@ class WebRXHandler(BaseHTTPRequestHandler): self.end_headers() self.wfile.write("