vibora
vibora copied to clipboard
ab (Apache Bench) The timeout specified has expired (70007)
Hi;
when ab (Apache Bench) to do load testing, givin the timeout error.
The timeout specified has expired (70007)
But no error in browser.
app.py
from vibora import Vibora, JsonResponse
app = Vibora()
@app.route('/', methods=['GET'])
async def home():
return JsonResponse({'hello': 'world'})
app.run(debug=False, port=5030)
server is running.
# Vibora (0.0.7) # http://127.0.0.1:5030
ab -n 10 -c 1 -s 1000 http://127.0.0.1:5030/
This is ApacheBench, Version 2.3 <$Revision: 1796539 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)...apr_pollset_poll: The timeout specified has expired (70007)
i think this isn't a vibora issue.
May be.
But when i tested with Flask and Django, not giving timeout error.
This is private server.
ab -n 50 -c 50 http://185.122.200.28:5080/
Benchmarking 185.122.200.28 (be patient)...apr_pollset_poll: The timeout specified has expired (70007)
if you want to serve it over the internet you should start the server at 0.0.0.0:5080
and not on 127.0.0.1:5080
I had the same issue while running the server in local
I had the same issue.
the server:
Vibora (0.0.7) # http://0.0.0.0:8000
result:
ab -c 10 -n 100 http://127.0.0.1:8000/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)...apr_pollset_poll: The timeout specified has expired (70007)
ab does not implement http 1.1 which could be a case here. It's sends http 1.0 requests.
For my particular needs, I have disabled the HTTP/1.0 connections on nginx through the following command in the server context.
if ($server_protocol ~* "HTTP/1.0") { return 444; }
However, when I need to run ab, I comment out this line and reboot nginx. Then it works fine.