netdev
[Top] [All Lists]

Re: udp_recvmsg: possible bug causing infinite hang?

To: Nagendra Singh Tomar <nagendra_tomar@xxxxxxxxxxx>
Subject: Re: udp_recvmsg: possible bug causing infinite hang?
From: Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>
Date: Tue, 12 Oct 2004 10:56:26 +0200 (CEST)
Cc: "Chad N. Tindel" <chad@xxxxxxxxxx>, netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.44.0410121131570.29592-100000@xxxxxxxxxxxxxxxxxxxxx>
References: <Pine.LNX.4.44.0410121131570.29592-100000@xxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>