Subject: Re: Why do some network connections get stuck forever?
To: None <tech-net@NetBSD.org>
From: Greg A. Woods <woods@weird.com>
List: tech-net
Date: 10/26/2005 16:27:51
At Wed, 26 Oct 2005 08:41:55 +0000,
Kentaro A. Kurahone wrote:
> 
> On Tue, Oct 25, 2005 at 04:52:50PM -0400, Greg A. Woods wrote:
> > 
> > But how does one discover the current state of the socket options in
> > order to determine whether or not keep-alives are enabled or not?
> > Are they included in the apparently invisible "socket flags field" that
> > is not being shown by fstat(8) despite the manual mentioning it?
> > (see attached)
> 
> Programatically?  getsockopt(2)

No, sorry, but as implied by suggesting fstat(8), I meant as a system
manager or systems programmer trying to debug the state of a currently
running (or stalled) process and its open socket descriptors.  ;-)

-- 
						Greg A. Woods

H:+1 416 218-0098  W:+1 416 489-5852 x122  VE3TCP  RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>