Thread (15 messages) flat view 15 messages, 9 authors, 2004-10-12

Re: udp_recvmsg: possible bug causing infinite hang?

From: Henrik Nordstrom <hidden>
Date: 2004-10-12 08:56:26

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help