On Wed, 27 Aug 2003 19:35:52 -0500 "Lee Chin" <leechin@mail.com> wrote: > At the end, after sending all my data, I "close" the socket. > > However, the client sees a TCP RST packet and only receives partial data. > > What am I doing wrong? I though that the close would actually kill the socket after all the data has been sent You cannot close() the socket until you have emptied all the data bytes on the read side of the socket(), if data remains on the read side when you close() a TCP RST packet is sent. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html