[issue31639] http.server and SimpleHTTPServer hang after a few requests
Julien Palard
report at bugs.python.org
Wed Dec 27 04:33:27 EST 2017
Julien Palard <julien+python at palard.fr> added the comment:
I straced both chromium and Python during the issue and seen this:
Chromium open a socket (port 55084), sends "GET /domain1.html" to it.
Python accepts it, reads "GET /domain1.html", replies, OK
Chromium closes socket on port 55084
Chromium opens three sockets:
- port 55086
- port 55088
- port 55090
Python accepts a socket on port 55088 and read on it (blocking)
Chromium writes "GET /domain2.html" on socket on port 55090
At this point we're stuck, three socket are opened, Python is reading on one of them, Chromium is writing on another.
----------
nosy: +mdk
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31639>
_______________________________________
More information about the Python-bugs-list
mailing list