[New-bugs-announce] [issue21035] Python's HTTP server implementations hangs after 16.343 requests on MacOSX

Parto Chobeiry report at bugs.python.org
Sun Mar 23 12:14:12 CET 2014


New submission from Parto Chobeiry:

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?

----------
messages: 214562
nosy: chobeiry
priority: normal
severity: normal
status: open
title: Python's HTTP server implementations hangs after 16.343 requests on MacOSX
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21035>
_______________________________________


More information about the New-bugs-announce mailing list