SPUG: Closing HTTP::Daemon port

dleonard at dleonard.net dleonard at dleonard.net
Sun Aug 10 13:48:59 CDT 2003


Frankly I'm suprised that it is only 55 seconds.  The linux kernel should
take 2 minutes to properly recycle a port such that it is available for
usage after closing if done in kernel space.

-- 

<Douglas Leonard>
<dleonard at dleonard.net>

On Sat, 9 Aug 2003, 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