On Fri, May 6, 2011 at 10:44 AM, Kacheong Poon <ka-cheong.p...@oracle.com> wrote: > I want to gather some info about what apps expect from setting > the SO_LINGER option with a non-zero linger time on a TCP socket. > Suppose after the specified linger timeout, some data still cannot > be sent or some data has not been ack'ed by the peer. In this > case, the close() will return an error as documented. But what do > apps expect the underlying TCP connection will behave? AFAIK, > there is no Solaris document which states what will happen to > the underlying TCP connection. Do apps expect that the connection > will be aborted after the timeout, the same behavior if a zero linger > time is set?
What would the alternative be? That the socket lingers forever? IMO, when the linger time's up, it's up: the connection must be reset and the caller of close() must get an error back. Nico -- _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org