[haiku-bugs] Re: [Haiku] #9678: Cannot send and receive through the same socket

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Wed, 17 Apr 2013 13:35:36 -0000

#9678: Cannot send and receive through the same socket
---------------------------------------+-------------------------
   Reporter:  markh                    |      Owner:  phoudoin
       Type:  bug                      |     Status:  in-progress
   Priority:  normal                   |  Milestone:  R1
  Component:  Network & Internet/IPv4  |    Version:  R1/alpha4.1
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+-------------------------

Comment (by phoudoin):

 If I'm not mistaken, problem is here:
 http://cgit.haiku-os.org/haiku/tree/src/add-
 ons/kernel/network/protocols/udp/udp.cpp#n371

 When the local address is not empty, bound port is not kept, overwritten
 by routeToDestination's interface address port, which is 0 for obvious
 reason, leading to a new ephemeral port being bound to endpoint.

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

Other related posts: