[Tutor] Closing BaseHTTPServer...
lawrence wang
levity at gmail.com
Sat Jul 16 00:21:29 CEST 2005
I've been using BaseHTTPServer (and subclassing
BaseHTTPRequestHandler, of course) for a project at work. However, I
can't seem to close my connections completely once I'm done with the
server. I've tried:
server.server_close()
del server
but when I try to use the same port again, it complains that it's
already bound; what's more, the interpreter hangs when I try to exit.
Thanks in advance for any help you can offer!
Lawrence
More information about the Tutor
mailing list