[Python-bugs-list] [Bug #130712] BaseHTTPServer.HTTPServer.serve_forever() is stuck

noreply@sourceforge.net noreply@sourceforge.net
Mon, 05 Feb 2001 07:18:54 -0800


Bug #130712, was updated on 2001-Feb-01 09:11
Here is a current snapshot of the bug.

Project: Python
Category: Python Library
Status: Closed
Resolution: Wont Fix
Bug Group: Not a Bug
Priority: 5
Submitted by: danielnuriyev
Assigned to : gvanrossum
Summary: BaseHTTPServer.HTTPServer.serve_forever() is stuck

Details: Python: 2.1a1
Platform: NT4

BaseHTTPServer.HTTPServer.server_forever() is stuck.
It doesn't happen on my other computer with Windows2000.

Follow-Ups:

Date: 2001-Feb-05 07:18
By: gvanrossum

Comment:
Well, the name of the function is "serve_forever()".. and that's what it
does.  I agree that it's a nuisance that you can't kill it with Control-C
(have you tried Control-Break?), but this is not a bug in Python.

I'm closing this bug report as "Not a bug" and "Wont Fix".
-------------------------------------------------------

Date: 2001-Feb-04 23:50
By: danielnuriyev

Comment:
import BaseHTTPServer, SimpleHTTPServer

server_class=BaseHTTPServer.HTTPServer
handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler
server_address = ('name_of_localhost', 8080)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()
----------------------
When I run the above script in NT, I have to "End Process" of Python.

-------------------------------------------------------

Date: 2001-Feb-01 20:23
By: fdrake

Comment:
(I should also note that I only have Win2K available myself, so it's not
clear I can actually help.)
-------------------------------------------------------

Date: 2001-Feb-01 12:04
By: fdrake

Comment:
I don't understand what you mean by "stuck".  Can you provide more
information about how to reproduce (a 5-line script might do the trick).

Thanks!
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=130712&group_id=5470