Re: close() with queued receive data loses transmit data

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

 



Hi,

On Thursday, 28. November 2002 04:30, David S. Miller wrote:
> When pending read data is present, you must read it all before you
> close the socket or else the whole connection will be reset.  There
> are no exceptions

Interesting. I didn't know this either.
Now how do I make sure that between my last read() and the close()
system call no more data arrives? Sounds like a race condition to me.
Or do I have to make sure on higher protocol layers that this situation
does not occur?

  -- Jens

-- 
Jens David, DG1KJD
Email: dg1kjd@afthd.tu-darmstadt.de
Work: +49 351 80800 527  ---  Home/Mobile: +49 160 7563049
-
: 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