Re: udp_recvmsg: possible bug causing infinite hang?

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

 



On Tue, 12 Oct 2004, Nagendra Singh Tomar wrote:

checksumming. If the standard does not explicitly write anything about the
guarantee of read/write passing after successful return from select, then
its fine; but somehow that does not sound very rational.
If anyone can point to the specific section in the POSIX standard that
dictates this, it will be of great help.

From SUSv3 on select():

A descriptor shall be considered ready for reading when a call to an input function with O_NONBLOCK clear would not block, whether or not the function would transfer data successfully. (The function might return data, an end-of-file indication, or an error other than one indicating that it is blocked, and in each of these cases the descriptor shall be considered ready for reading.)

      A descriptor shall be considered ready for writing when a call
      to an output function with O_NONBLOCK clear would not block,
      whether or not the function would transfer data successfully.


so it seems to me the current Linux implementation is wrong in this regard.



Regards Henrik

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