Thread (2 messages) flat view 2 messages, 2 authors, 2003-07-09

Re: shutdown() and SHUT_RD on TCP sockets - broken?

From: Andi Kleen <hidden>
Date: 2003-07-09 10:38:10

On Wed, 9 Jul 2003 12:11:19 +0200 (MEST)
mtk-lists@gmx.net wrote:

.
quoted
From viewpoint of TCP the behaviour described in Stevens' book
is highly unnatural. SHUT_RD on TCP does not make any sense.
A while back I had some communication with Andi Kleen on this point,
and he suggested that the TCP could send an RST in this case, much 
Linux sends an RST when data arrives that the  user cannot read anymore 
because the receiving socket is already closed. It would make sense to extend
this behaviour to SHUT_RD. But there is no natural place to implement it
outside the fast path, and it's so obscure that it is not worth slowing
common cases down.

-Andi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help