From b2c4c9422ede28ff2a0d6fe7340470d0a92784a8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 23 Oct 2015 20:40:49 +0530 Subject: [PATCH] Update last_activity when not using sendfile as well --- src/calibre/srv/http_response.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/srv/http_response.py b/src/calibre/srv/http_response.py index 8d9f9112c6..aab51e0304 100644 --- a/src/calibre/srv/http_response.py +++ b/src/calibre/srv/http_response.py @@ -341,6 +341,7 @@ class HTTPConnection(HTTPRequest): raise IOError('sendfile() failed to write any bytes to the socket') else: sent = self.send(buf.read(min(limit, self.send_bufsize))) + self.last_activity = monotonic() buf.seek(pos + sent) return buf.tell() == end