Skip to contentSkip to conversation

socket write(2) after remote shutdown(2) problem ?

DISCUSSION Andi Kleen 1 participant 1 message Apr 5, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 5 lines · David S. Miller

But all of this is irrelevant. When a server closes and says "send me no more data", this implies that the server told the client it doesn't want any more data. If the client sends data, this is a gross fatal error, so TCP resets in FIN_WAIT{1,2} states.

Linux has one hole in this. When the reset arrives too late the pending error is not passed up and propagated through shutdown/close.

-Andi