mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
evict stuck/idle clients
This commit is contained in:
parent
456fab2e0b
commit
64274ca756
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue