Open yohanboniface opened 7 years ago
try to define on_url_called
in initial function?
class Request:
def __init__(self):
self.EOF = False
self.on_url_called = False
def on_url(self, url: bytes):
self.on_url_called = True
def on_message_complete(self):
self.EOF = True
From time to time, my server output an error that let me think that
Request.on_url
is not called for the current stream.Here is a small script to reproduce the behaviour:
To be run with
python file.py
And then benchmark it with something like
ab -n 10000 -c 8 'http://127.0.0.1:8080/'
Once every, say, 10000 requests, I get this error:
Any hint? :)
Thanks!