mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -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):
|
def thr_client(self, sck, addr):
|
||||||
"""thread managing one tcp client"""
|
"""thread managing one tcp client"""
|
||||||
|
sck.settimeout(120)
|
||||||
|
|
||||||
cli = HttpConn(sck, addr, self)
|
cli = HttpConn(sck, addr, self)
|
||||||
with self.mutex:
|
with self.mutex:
|
||||||
self.clients[cli] = 0
|
self.clients[cli] = 0
|
||||||
|
|
Loading…
Reference in a new issue