@Duncan Thanks for replying.<br><br>My scenario is like when a server get crashed and restarted by watchdog.<br>For persisitent POA it should bind to the same port(using -ORBendPoint 2810).<br><br>After Server get crashed I used the netsat -nop TCP to find the port info. The particular port is in FIN_WAIT_2 state.<br>
Since server is getting crashed it will not be in a position to send the final FIN. The opearting system should take care of cleaning the ports. In my case Windows is not cleaning up that port.<br>When I searched for this problem I found out for the apache servers they are configuring a time delay for flushing out this ports.<br>
<br>My question is there anything can be anything done on the ORB level for cleaning up the ports like reducing the time delay, without depending on the operating systems to clean up the ports while server getting crashed.<br>
<br>Thanks in advance.<br><br>Regards<br>Srinath.D<br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 11:02 PM, Duncan Grisby <span dir="ltr"><<a href="mailto:duncan@grisby.org">duncan@grisby.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Fri, 2009-10-30 at 16:44 +0530, srinath duraisamy wrote:<br>
<br>
> I started my server with -ORBendPoint option. Run my client got a<br>
> reference for server from naming service.<br>
> When I restarted the server again I am getting the following error<br>
><br>
> $ build/Server.exe -ORBInitRef NameService=corbaname::localhost<br>
> -ORBendPoint giop:tcp:localhost:2810<br>
> omniORB: Failed to bind to address 127.0.0.1 port 2810. Address in<br>
> use?<br>
> omniORB: Error: Unable to create an endpoint of this description:<br>
> giop:tcp:localhost:2810<br>
> Caught CORBA::INITIALIZE<br>
<br>
</div>That means something else is using the port. You can use netstat -ano to<br>
see what. Are you sure the previous invocation of your server had<br>
definitely terminated?<br>
<div><div></div><div class="h5"><br>
Cheers,<br>
<br>
Duncan.<br>
<br>
--<br>
-- Duncan Grisby --<br>
-- <a href="mailto:duncan@grisby.org">duncan@grisby.org</a> --<br>
-- <a href="http://www.grisby.org" target="_blank">http://www.grisby.org</a> --<br>
<br>
<br>
</div></div></blockquote></div><br><input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div>