fix: pipelining didn't work

master
Yorick van Pelt 2015-04-03 00:27:45 +02:00
parent 9257de3a2a
commit 0bf033d4d4
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class HTTPClient(asyncserver.Client):
headers = self.read_buf[:idx]
self.read_buf = self.read_buf[idx+4:]
self.on_request(headers)
self.on_data() # there might be more in the read_buf.
def set_timeout(self):
self.timeout = datetime.today() + timedelta(seconds=10)
def on_request(self, req):