evict stuck/idle clients

This commit is contained in:
ed 2019-07-11 18:26:24 +00:00
parent 456fab2e0b
commit 64274ca756

View file

@ -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