ts-7000
[Top] [All Lists]

[ts-7000] Re: Rebind after process crash -- quasi-n00b sockets issue

To:
Subject: [ts-7000] Re: Rebind after process crash -- quasi-n00b sockets issue
From: Alexander Clouter <>
Date: Sun, 18 May 2008 10:15:23 +0100
Hi,

Fred <> [20080515 16:45:31 -0000]:
>
> --- "mikeciaraldi" <> wrote:
> > --- Bob Lees <bob@> wrote:
> >> If you google for this you will find this problem 
> >> has been well exercised in the past, not on this 
> >> list but on lists in general.  It is a "feature" 
> >> of the way the TCP/IP stack works and unfortunately 
> >> there is no magic bullet!  
> > It is designed to prevent any packets which are 
> > already in transit when the port gets closed from 
> > causing problems.
> 
> It's a shame that there doesn't appear to be a standard, built-in way 
> to configure the time that the obsolete resource can be fully 
> released.  As it is, checking every 10 seconds until one can bind -- 
> with a one minute abort-because-it-just-won't-come backup -- seems like 
> the best solution.
> 
Is the original now dead process still in the process list ('ps axf') just in 
a semi-zombied state?  If you put in some SIG handlers they might be 
preventing your application exiting so that port is actually open and 
assigned to a real (but unresponsive) task.

What does 'netstat -lnp' show?

Silly question, but you are using REUSEADDR on the original bind() call too?

To be honest you might be better off asking this on a networking coding 
mailing list or newsgroup.

Cheers

Alex

-- 
 ________________________________
/ Curiosity killed the cat, but  \
\ satisfaction brought her back. /
 --------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU