SPUG: Closing HTTP::Daemon port
C.J. Collier
cjcollier at colliertech.org
Sat Aug 9 21:37:12 CDT 2003
What's netstat --inet say about the state of the socket?
C.J.
On Sat, 2003-08-09 at 02:59, Marc M. Adkins wrote:
> 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
>
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
> POST TO: spug-list at mail.pm.org Wiki: spugwiki.perlocity.org
> ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays, U-District, Seattle WA
> WEB PAGE: www.seattleperl.org
>
More information about the spug-list
mailing list