SimpleHTTPRequestHandler used with HTTP/1.1 hangs after the second resource on a page.

Piotr Dobrogost p at google-groups-2013.dobrogost.net
Fri Apr 12 16:46:39 EDT 2013


Hi!

I'd like to bring your attention to the question titled "Use HTTP/1.1 with SimpleHTTPRequestHandler" at http://stackoverflow.com/q/15839718/95735 which reads; "When I use HTTP/1.1 with SimpleHTTPRequestHandler, loading a page that pulls in other resources will hang after the second resource." and there's a tiny test showing the problem.
It's hard to believe that SimpleHTTPServer doesn't handle such a simple task, does it?
If I checked correctly code is stuck in handle_one_request() method at line 370 of server.py (http://hg.python.org/cpython/file/d9893d13c628/Lib/http/server.py#l370) but I can't see what's wrong.
Any ideas?


Best regards,
Piotr Dobrogost



More information about the Python-list mailing list