[haiku-bugs] Re: [Haiku] #9734: Receiving from a nonblocking socket causes "Operation timed out" error

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Thu, 02 May 2013 19:49:21 -0000

#9734: Receiving from a nonblocking socket causes "Operation timed out" error
--------------------------------------+----------------------------
   Reporter:  markh                   |      Owner:  zooey
       Type:  bug                     |     Status:  new
   Priority:  normal                  |  Milestone:  R1
  Component:  Network & Internet/UDP  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  All
--------------------------------------+----------------------------

Comment (by axeld):

 The following code pieces are important here:
  1. [http://cgit.haiku-os.org/haiku/tree/src/system/kernel/sem.cpp#n804
 How the kernel deals with timeouts]
  1. [http://cgit.haiku-
 os.org/haiku/tree/headers/private/net/ProtocolUtilities.h#n347 The code
 calling it]
  1. [http://cgit.haiku-
 os.org/haiku/tree/headers/private/net/ProtocolUtilities.h#n371 And the
 timeout computation]

 IOW either the code at 2.) must not use B_ABSOLUTE_TIMEOUT when the
 timeout is actually zero, or the kernel should treat absolute timeout as
 relative if the timeout is zero.

 Opinions anyone? Maybe we should find out what BeOS did here, and stay
 compatible (which probably means changing 2.)).

--
Ticket URL: <http://dev.haiku-os.org/ticket/9734#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: