Receiver (in ur discussion) should be sending the RST not the sender. But ur explaination seems to hint that the sender of data is the one sending RST.
tomar On Thu, 28 Aug 2003, David S. Miller wrote: > On Wed, 27 Aug 2003 19:35:52 -0500 > "Lee Chin" <[EMAIL PROTECTED]> 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. > - > To unsubscribe from this list: send the line "unsubscribe linux-net" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majordomo-info.html > - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
