mirror of
https://github.com/9001/copyparty.git
synced 2026-03-22 08:03:32 +10:00
evict stuck/idle clients
This commit is contained in:
@@ -52,6 +52,8 @@ class HttpSrv(object):
|
||||
|
||||
def thr_client(self, sck, addr):
|
||||
"""thread managing one tcp client"""
|
||||
sck.settimeout(120)
|
||||
|
||||
cli = HttpConn(sck, addr, self)
|
||||
with self.mutex:
|
||||
self.clients[cli] = 0
|
||||
|
||||
Reference in New Issue
Block a user