On Thu, 6 Oct 2005, Jamie Lokier wrote:
However, if there's data in flight _to_ the peer _after_ the peer closes the socket, the peer may respond with a RST packet and if that's received locally, read() will return an error instead of 0 - even if there's data in the socket RX queue.
Indeed. A RST discards anything which was in the RX queue at the time the RST was received.
Regards Henrik - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html