fix: pipelining didn't work
parent
9257de3a2a
commit
0bf033d4d4
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue