Cleanly stopping a Python server? WAS: Re: [Tutor] THE CGI SERVER
SCRIPT
R. Alan Monroe
amonroe at columbus.rr.com
Sun Sep 14 16:29:27 EDT 2003
> Below is the cgi code:
> #!C:\Programmer\python\pythonw.exe
> import CGIHTTPServer, BaseHTTPServer
> httpd=BaseHTTPServer.HTTPServer(('',80),
> CGIHTTPServer.CGIHTTPRequestHandler)
> httpd.serve_forever()
Is there a nice way of killing a server that's been launched with
serve_forever()? (I have SimpleXMLRPCServer in mind, but it would
apply to this too).
Alan
More information about the Tutor
mailing list