BaseHTTPServer
FrancescO
francesco.contini at tiscalinet.it
Fri Apr 5 21:42:30 EST 2002
Hi!
i'm trying to write a sort of thing similar to an application server that
works
reading the uri requested like parameters (more or less like a querystring
for a cgi)
and send an xml structure for result.
My starting point is the BaseHTTPServer module, and following the example in
the documentation, i wrote all the code needed to work but...
if i try to stop and restart the server i have an exception:
port already in use
it seems that the connections with the clients aren't closed when i stop the
server...
after a minutes, or more, the port is free... and i can restart the
program, but, obviously,
i cannot leave the server off for too much seconds.
I don't run a particular code to stop.. (kill -9 ;P ) and i like to use the
same way used
by the /etc/init.d/... scripts to start and stop.
there's something that i forget? maybe i must write a destructor for the
RequestHandler derived class?
there's a way to stop the server in a "clean way"?
Thanks a lot!
Francesco Contini
Software Developer
Excite Italia B.V.
www.excite.it
More information about the Python-list
mailing list