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: "naturalwatt" <>
Date: Thu, 15 May 2008 09:06:43 -0000
--- In  "Fred" <> wrote:
>
> --- "naturalwatt" <martin@> wrote:
> > I have the same problem.  The kernel seems to hold 
> > the socket in use for just about 60 seconds.  My 
> > process attempts to bind every 10 seconds until it 
> > succeeds.
> 
> That's probably the smart thing to do.  I've got a test process which I 
> use to try to find some way to force the bind() but it looks like I'll 
> have to try what you did -- though I'll try once a second.  }:-}
> 
> There doesn't appear to be any ioctl() or fntcl() or sockopt() that's 
> responsible for tailoring the timing on when the TCP/IP stack relents 
> and "discovers" dead process resources that can be released and granted 
> to others.
>
I don't know enough about Linux, but on Solaris it's a kernel parameter 
setting, which is 
system-wide, not per-process.  So you are unlikely to be able to set it via 
ioctl.

One version of HP-UX had a bug in that sockets were essentially never released, 
so after a 
few months, you had hundreds of sockets in FINWAIT2, and the only solution was 
a 
reboot. 

It might be a dynamic kernel setting somewhere, accessible via the /procfs?  




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

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