vibora icon indicating copy to clipboard operation
vibora copied to clipboard

ab (Apache Bench) The timeout specified has expired (70007)

Open MakdosBilisim opened this issue 6 years ago • 9 comments

Hi;

when ab (Apache Bench) to do load testing, givin the timeout error.

The timeout specified has expired (70007)

But no error in browser.

https://prnt.sc/k7do1o

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)

MakdosBilisim avatar Jul 17 '18 07:07 MakdosBilisim

i think this isn't a vibora issue.

danieldaeschle avatar Jul 17 '18 07:07 danieldaeschle

May be.

But when i tested with Flask and Django, not giving timeout error.

MakdosBilisim avatar Jul 17 '18 07:07 MakdosBilisim

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)

MakdosBilisim avatar Jul 17 '18 09:07 MakdosBilisim

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

danieldaeschle avatar Jul 17 '18 09:07 danieldaeschle

I had the same issue while running the server in local

lepeli avatar Jul 19 '18 22:07 lepeli

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)

livyou avatar Jul 30 '18 09:07 livyou

I have the same problem with the Apache Bench. However siege and loadtest work like a charm.

alexdashkov avatar Sep 23 '18 20:09 alexdashkov

ab does not implement http 1.1 which could be a case here. It's sends http 1.0 requests.

Dith3r avatar Oct 12 '18 14:10 Dith3r

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.

beatquantum avatar Aug 13 '22 18:08 beatquantum