[issue31639] http.server and SimpleHTTPServer hang after a few requests

2019-09-11 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-05-29 Thread Julien Palard
Julien Palard added the comment: New changeset 4f53e2ac16e0bebae0a0c18f220295035b081ee3 by Julien Palard in branch '3.7': [3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195) (GH-7219)

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-05-29 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +6852 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-05-29 Thread Julien Palard
Julien Palard added the comment: New changeset 1cee216cf383eade641aed22f4ec7d4cb565ecff by Julien Palard (Géry Ogam) in branch 'master': bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195)

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-05-29 Thread Géry
Change by Géry : -- pull_requests: +6829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset f8d2c3cf5f62f0c259b2bf35c631353d22cf1d08 by Miss Islington (bot) in branch '3.7': bpo-31639: Use threads in http.server module. (GH-5018)

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread Julien Palard
Change by Julien Palard : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5948 ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5947 ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread Julien Palard
Julien Palard added the comment: New changeset 8bcfa02e4b1b65634e526e197588bc600674c80b by Julien Palard in branch 'master': bpo-31639: Use threads in http.server module. (GH-5018) https://github.com/python/cpython/commit/8bcfa02e4b1b65634e526e197588bc600674c80b

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-28 Thread Julien Palard
Julien Palard added the comment: Glenn you're right I modified my PR. -- ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Glenn Linderman
Glenn Linderman added the comment: I don't know how to look back at the previous version of the PR, I was barely able to find the "current version" each time. The following line is in the current version: daemon_threads = True Whether it was in the previous version, I

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Julien Palard
Julien Palard added the comment: David you're right, I updated my patch, also added some documentation and a news entry. Glenn I can't tell if my PR fixes your issue without an strace or a test. It fixes the one I straced (pre-opening sockets leading to Python

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Glenn Linderman
Glenn Linderman added the comment: I tried the approach in the PR "externally" (when starting the server using a test program), and I couldn't get it to work. But my test case was probably different: I was using Chrome rather than Chromium, and while they both work for

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread R. David Murray
R. David Murray added the comment: I don't think the PR as it stands is a good idea. These classes are designed to be composable, so it should be up to the library user whether or not to use threads. However it would be perfectly reasonable to choose to use threads in

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Julien Palard
Julien Palard added the comment: I wrote a 2 lines PR in which I propose to use threads to handle connections as it's well supported by socketserver via a ThreadingMixIn and fixes the issue. -- ___ Python tracker

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Julien Palard
Change by Julien Palard : -- keywords: +patch pull_requests: +4908 stage: -> patch review ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Julien Palard
Julien Palard 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

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Roger Wang
Change by Roger Wang : -- nosy: +rogerwang ___ Python tracker ___ ___ Python-bugs-list

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-17 Thread Glenn Linderman
Glenn Linderman added the comment: This probably has been around for a while: this 2011 thread in a Chromium wontfix bug is enlightening, but the solution suggested, a ThreadingMixIn for the HTTPServer, didn't help me.

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-17 Thread Glenn Linderman
Glenn Linderman added the comment: Same behavior on Windows. -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, v+python, zach.ware ___ Python tracker

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-30 Thread Martin Panter
Change by Martin Panter : -- Removed message: https://bugs.python.org/msg303440 ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-30 Thread Martin Panter
Martin Panter added the comment: . Actually take back a lot of what I wrote above. I forgot that SimpleHTTPRequestHandler only supports HTTP 1.0; I don’t think it uses keep-alive or persistent connections, so it should close its TCP connections promptly. There may be

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-30 Thread Martin Panter
Martin Panter added the comment: The change in handling KeyboardInterrupt was my intention in Issue 23430. I hope it isn’t a problem on its own :) Running the module with “python -m http.server” uses the HTTPServer class, based on socketserver.TCPServer. This only

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-29 Thread Matt Pr
Matt Pr added the comment: It has been pointed out to me that this issue may be related to chrome making multiple requests in parallel. A test with wget seems to support this. wget -E -H -k -K -p http://domain1.com:8000/domain1.html ...does not hang, whereas

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-29 Thread Matt Pr
New submission from Matt Pr : Doing a cross domain iframe test. `domain1.html` has iframe pointing at `domain2.html` which has iframe pointing at `domain3.html`. `domain{1,2,3}.com` are all configured to point at `127.0.0.1` in my `/etc/hosts` file. Loaded up