[issue21035] Python's HTTP server implementations hangs after 16.343 requests on MacOSX
Parto Chobeiry
report at bugs.python.org
Sun Mar 23 16:19:47 CET 2014
Parto Chobeiry added the comment:
TCP ports are available - did the following while running "ab" against "python3.4 -m http.server":
u1@~$ while true; do netstat -an|grep tcp|wc; sleep 1; done
50 300 3950
50 300 3950
50 300 3950
50 300 3950
50 300 3950
50 300 3950
49 294 3871
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 306 4029
50 300 3950
50 300 3950
51 306 4029
51 306 4029
51 306 4029
51 306 4029
51 TCP sockets in use.
Connecting from another client then blocks for some time (I hit enter multiple times) before showing "connected to localhost", then the request is answered:
u1@~$ telnet 127.0.0.1 8000
Trying 127.0.0.1...
GET /
Connected to localhost.
Escape character is '^]'.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Directory listing for /</title>
</head>
...
How do I trace in MacOSX? No truss or strace available...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21035>
_______________________________________
More information about the Python-bugs-list
mailing list