From 7dff6d61e6df07d2f60d2b18784a2eb397f2ef5f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 25 Oct 2015 11:22:30 +0530 Subject: [PATCH] Revert "Update last_activity when not using sendfile as well" This reverts commit b2c4c9422ede28ff2a0d6fe7340470d0a92784a8. last_activity is already updated in the send() method --- src/calibre/srv/http_response.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/calibre/srv/http_response.py b/src/calibre/srv/http_response.py index 76e2a88b7b..524222a121 100644 --- a/src/calibre/srv/http_response.py +++ b/src/calibre/srv/http_response.py @@ -343,7 +343,6 @@ 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