Re: sending data on a socket followed by a close

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" <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
> 

-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux