[jcifs] SmbFile: BindException problem while browsingworkgroups

Christopher R. Hertel crh at ubiqx.mn.org
Fri Nov 9 02:53:07 EST 2001


SO_LINGER, SO_REUSEADDR, and SO_REUSEPORT are all related.  They impact
the TIME_WAIT state of a TCP socket.

On Thu, Nov 08, 2001 at 04:41:21PM +0100, James Nord wrote:
> Christopher R. Hertel wrote:
> 
> >That's all pretty much a longshot but it sure sounds like symptoms I've
> >seen when SO_REUSEADDR isn't set.  
> >
> >Basically, the idea of SO_REUSEADDR is
> >this:  When you close a port the computer at the other end may continue to
> >send stuff to you for a little while (until it notices you've closed the
> >port).  That in mind, the OS won't give out the same port again for a few
> >seconds.  
> >
> Ermm if I'm not mistaken you're talking about SO_LINGER there...
> 
> >You use SO_REUSEADDR to tell the OS that it's okay to re-use that
> >port.
> >
> Yup.
> 
> 
> 

-- 
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org




More information about the jcifs mailing list