Update last_activity when not using sendfile as well

This commit is contained in:
Kovid Goyal 2015-10-23 20:40:49 +05:30
parent 3ab32a1da6
commit b2c4c9422e

View File

@ -341,6 +341,7 @@ class HTTPConnection(HTTPRequest):
raise IOError('sendfile() failed to write any bytes to the socket') raise IOError('sendfile() failed to write any bytes to the socket')
else: else:
sent = self.send(buf.read(min(limit, self.send_bufsize))) sent = self.send(buf.read(min(limit, self.send_bufsize)))
self.last_activity = monotonic()
buf.seek(pos + sent) buf.seek(pos + sent)
return buf.tell() == end return buf.tell() == end