<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Prebhakar,<div class=""><br class=""></div><div class="">Since you are using OCI's commercial release  of TAO, you should work with OCI directly for support. There are some situations in which a server using a bidir connection may abandon it. For example, if the server is multithreaded and needs to send concurrent requests, or if the connection was otherwise lost. </div><div class=""><br class=""></div><div class="">-Phil</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 22, 2016, at 1:35 AM, Prabhakar Bhatt <<a href="mailto:prabhakar.bhatt@gmail.com" class="">prabhakar.bhatt@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><p class="">Hi,<br class="">
 <br class="">
   Greetings to everybody.<br class="">
 <br class="">
  We are using ACE+TAO 2.0a  in out project and facing following
issues in one of the customer production.<br class="">
 <br class="">
   The details as follows:<br class="">
 <br class="">
    ==================================================================<br class="">
 <br class="">
                
TAO VERSION: 2.0a<br class="">
 <br class="">
                
HOST MACHINE and OPERATING SYSTEM: LINUX (Red Hat Enterprise Linux Server
release 5.2 (Tikanga) )<br class="">
                
TARGET MACHINE and OPERATING SYSTEM, if different from HOST: LINUX (Red Hat
Enterprise Linux Server release 5.2 (Tikanga) )<br class="">
                
COMPILER NAME AND VERSION (AND PATCHLEVEL): gcc-c++-4.1.2-42.el5<br class="">
                
CONTENTS OF $ACE_ROOT/ace/config.h : #include "ace/config-linux.h"<br class="">
                
CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU :include
$(ACE_ROOT)/include/makeinclude/platform_linux.GNU<br class="">
                                                                                                                            
INSTALL_PREFIX=/tmp/TAO-INSTAL<br class="">
                
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features: File is
not present.<br class="">
                
LEVEL OF URGENCY (LOW, MEDIUM, or HIGH): HIGH<br class="">
                
AREA/CLASS/EXAMPLE AFFECTED: Change in BiDirectional Port causes disconnection
between server and client AND TAO traces not logged.<br class="">
                
DOES THE PROBLEM AFFECT:<br class="">
                                 
COMPILATION? No<br class="">
                                 
LINKING? No <br class="">
                                 
On Unix systems, did you run make realclean first? No<br class="">
                                 
EXECUTION? Yes<br class="">
                                 
OTHER (please specify)? No<br class="">
 <br class="">
==================================================================<span class=""></span></p><p class="MsoNormal"><br class="">
SYNOPSIS and DESCRIPTION as follows :<br class="">
 <br class="">
=============================================================================<br class="">
 <br class="">
1.  We are setting following debug options
in  orb_init at server side. But logs are seen only at the process
startup. After that no logs are seen.<span class=""></span></p><p class="MsoNormal">         <b class=""><i class="">Orb_init
signature : MCC_T_CHAR *defaultOptions_p[] = {"dummy",
"-ORBDebug",
"-ORBDebugLevel","99","-ORBLogFile",(char
*)procInfo.proc_trace_info.trace_file,0};<span class=""></span></i></b></p><p class="MsoNormal"><br class="">
2.  We are using <span style="font-size:10pt;font-family:"courier new"" class="">BIDIRECTIONAL port usage in our Server and
Client application for communication. Two thread are being used at server side
to Communication with client. One thread is uses a callback of client to send
the actual data, second thread calls client callback for polling mechanism .
When everything is going fine both the threads at server use 6001 to
communicate with client. But suddenly polling thread callback request from the
server will be sent to client on different port ( Ex : 52345). After this
connection is lost between the server and client. After analyzing the pcaps it
is confirmed that signature remains for all the disconnections and RST( at TCP
Level) is received from the client for request on port 42345. Even though
BiDirectional is set why the request is going on new port.<span class=""></span></span></p><div class=""><span style="font-size:10pt;font-family:"courier new"" class=""><span class=""> </span></span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class=""> Configuration : # TAO Naming<span class=""></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                 NameServiceIOR=corbaloc:iiop:localhost:3075/NameService<span class=""></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                 # TAO IIOP Endpoint<span class=""></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                 TAO_ORBENDPOINT="<a href="iiop://:6000/portspan=31" class="">iiop://:6000/portspan=31</a>"<span class=""></span></span></p><div class=""><span style="font-size:10pt;font-family:"courier new"" class=""><span class=""> </span></span><br class="webkit-block-placeholder"></div><div class=""><span style="font-size:10pt;font-family:"courier new"" class=""><span class=""> </span></span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class=""> Bidirectional policy : <span class=""></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                At client : POAPolicyList[1] =
m_client_orb->create_policy(BiDirPolicy::BIDIRECTIONAL_POLICY_TYPE, pol);<span class=""></span></span></p><div class=""><span style="font-size:10pt;font-family:"courier new"" class=""><span class=""> </span></span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                At Server : <span class=""></span></span></p><div class=""><span style="font-size:10pt;font-family:"courier new"" class="">                             <span class=""></span></span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                          callsPOAPolicyList[0] =
m_rootPOA->create_lifespan_policy(PortableServer::TRANSIENT);<span class=""></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                          callsPOAPolicyList[1] =
m_server_orb->create_policy(BiDirPolicy::BIDIRECTIONAL_POLICY_TYPE, pol2);<span class=""></span></span></p><div class=""><span class=""> </span><br class="webkit-block-placeholder"></div><div class=""><span class=""> </span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">Additional
policies are set before calling the Client side callback every time at server
side :<span class=""></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                              policyList[0] =
callbackRef->_get_orb()->create_policy(Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE,
rt_timeout_any);<span class=""></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"" class="">                              CORBA::Object_var object =
callbackRef->_set_policy_overrides(policyList, CORBA::ADD_OVERRIDE);<span class=""></span></span></p><div class="">                                         <span class=""></span><br class="webkit-block-placeholder"></div><p class="MsoNormal">=============================================================================================================<span class=""></span></p><p class="MsoNormal">Please do let me know your answers/suggestions.<span class=""></span></p><div class=""><span class=""> </span><br class="webkit-block-placeholder"></div><div class=""><span class=""> </span><br class="webkit-block-placeholder"></div><p class="MsoNormal">Thaks and Regards,<span class=""></span></p>

<span style="font-size:12pt;font-family:"times new roman",serif" class="">Prabhakar Bhatt</span><br class=""></div>
_______________________________________________<br class="">tao-users mailing list<br class=""><a href="mailto:tao-users@list.isis.vanderbilt.edu" class="">tao-users@list.isis.vanderbilt.edu</a><br class="">http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/tao-users</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="font-size: 12.8px;" class=""><div style="margin: 0px; padding: 0px; border: 0px;" class=""><span style="font-family: arial, helvetica, sans-serif; font-size: large;" class="">--</span></div><div style="margin: 0px; padding: 0px; border: 0px;" class=""><span style="font-family: arial, helvetica, sans-serif; font-size: large;" class="">Phil Mesnier</span><br class=""></div></div><div style="font-size: 12.8px;" class=""><div style="font-size: 12.8px;" class=""><font face="arial, helvetica, sans-serif" size="2" class="">Principal Engineer & Partner</font></div><div style="font-size: 12.8px;" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="font-size: 12.8px;" class=""><span style="font-family: arial, helvetica, sans-serif;" class=""><font size="2" color="#000000" class="">OCI | WE ARE SOFTWARE ENGINEERS.</font></span></div><div style="font-size: 12.8px;" class=""><span style="font-family: arial, helvetica, sans-serif; font-size: x-small;" class="">tel  +1.314.579.0066 x225</span><br class=""></div><div style="font-size: 12.8px;" class=""><a href="http://ociweb.com/" target="_blank" class="">ociweb.com</a></div><div class=""><br class=""></div></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>