Re: SO_LINGER patch for 2.2.15

From: Andi Kleen (ak@muc.de)
Date: Sat Feb 05 2000 - 12:36:05 EST


stevek@SteveK.COM (Steve Kann) writes:

> Hello, kernel-ites:
>
> I mentioned this in an earlier message titled "kernel blocks too
> long with SO_LINGER", and since that time I did some investigation, and
> have come to the conclusion that there is an error in the 2.2 kernel.

There is never any "indefinate" block on close, because the retransmission
timer for the FIN will kill (and wakeup) the sock after some time.

IMHO the behaviour is correct, otherwise the application could not be
sure that really all data has reached the other end. This way you are
guaranteed to get a error return when data is lost.

-Andi

-- 
This is like TV. I don't like TV.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:12 EST