socket write(2) after remote shutdown(2) problem ?
A message that is not in the archive (sent off-list or not yet received): [email protected]
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