[Tutor] Closing BaseHTTPServer...

2005-07-16 Thread Python
This sidesteps the issue of how to fix your threading code. SocketServer has a ThreadingMixIn class. You can create a threading HTTPServer without coding the threading yourself. (watch for typos - this is NOT from working code) class ThreadingHTTPD(SocketServer.ThreadingMixIn, BaseHTTPServer.HTT

Re: [Tutor] Closing BaseHTTPServer...

2005-07-16 Thread lawrence wang
Here's some more detail about how I've got things set up. I left a bunch of things out of my original email; sorry about that, I was rushed for time. I don't have access to the verbatim code right now, but here's the gist. I've subclassed threading.Thread like this: class ServerThread(threading.Th

Re: [Tutor] Closing BaseHTTPServer...

2005-07-15 Thread Danny Yoo
> 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,

[Tutor] Closing BaseHTTPServer...

2005-07-15 Thread lawrence wang
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 th