From 64274ca75628990fdc621995398a7af319d8f65f Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 11 Jul 2019 18:26:24 +0000 Subject: [PATCH] evict stuck/idle clients --- copyparty/httpsrv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/copyparty/httpsrv.py b/copyparty/httpsrv.py index 447efc3c..6947b78d 100644 --- a/copyparty/httpsrv.py +++ b/copyparty/httpsrv.py @@ -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