This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chobeiry
Recipients chobeiry
Date 2014-03-23.11:14:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395573252.44.0.596727679776.issue21035@psf.upfronthosting.co.za>
In-reply-to
Content
While deriving from Python's HTTP server implementation I think I found a bug (on MacOSX) which can be reproduced like this:

(1) Start the HTTP server:
python -m SimpleHTTPServer (or python -m http.server)

(2) Benchmark the HTTP server:
ab -n 20000 http://127.0.0.1:8000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
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)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
apr_socket_recv: Operation timed out (60)
Total of 16343 requests completed

This does not happen on Ubuntu.

What is the reason for timing out after 16.343 requests?
History
Date User Action Args
2014-03-23 11:14:12chobeirysetrecipients: + chobeiry
2014-03-23 11:14:12chobeirysetmessageid: <1395573252.44.0.596727679776.issue21035@psf.upfronthosting.co.za>
2014-03-23 11:14:12chobeirylinkissue21035 messages
2014-03-23 11:14:11chobeirycreate