[omniORB] potential bug: two ORBs with the same endPoint

Duncan Grisby duncan at grisby.org
Fri May 19 13:22:33 BST 2006


On Friday 19 May, Igor Lautar wrote:

[...]
> I would expect ORB_init to fail, if port is already binded. Is there a
> special resaon why this is not done, or is this a bug?

Are you using Windows?  I expect so.

The problem is not with omniORB, it is with Windows' interpretation of
the SO_REUSEADDR socket option. omniORB binds using that option so that
if a server crashes it is immediately able to rebind to the same
address. Unfortunately, Windows allows a process to bind to an address,
even if another process is still using it. There's no way to avoid it
other than not specifying SO_REUSEADDR, but then people would be
complaining that their servers fail to start immediately after a
previous run stopped.

Unix platforms correctly fail to allow you to bind if another process is
already bound.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list