SPUG: Closing HTTP::Daemon port
Marc M. Adkins
Marc.M.Adkins at Doorways.org
Sat Aug 9 04:59:46 CDT 2003
Seems like I knew the answer to this at one time...
I'm running an HTTP::Daemon on Linux. It responds to /quit by quitting,
which it does by exiting its main loop and closing (and undef'ing) the
HTTP::Daemon object (which is derived from IO::Socket::INET). So far as I
know I'm doing all the housekeeping properly.
After it quits, I restart it. For almost a minute the port is still held
and the HTTP::Daemon object can't be allocated. I've timed it and it seems
steady at about 55 seconds.
If I <ctrl-C> to KILL the program it doesn't seem to hold the port. It
doesn't hold the port running on Windows.
Is there a magic cookie for this?
mma
More information about the spug-list
mailing list