<div dir="ltr"><div dir="ltr" style="font-size:12.8px">Hi Phil Mesnier,<div><br></div><div>Thanks for the reply.</div><div><br></div><div>1. What is the solution to address sending request on new port? Any suggestion?</div><div>2. Why are we receiving RST when request is sent on new port? is RST initiated by TAO layer?</div><div><br></div><div>Thanks and Regards,</div><div>Prabhakar </div></div><div class="gmail-yj6qo gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"><div id="gmail-:2ld" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style="opacity: 0.3;"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 22, 2016 at 7:30 PM, Phil Mesnier <span dir="ltr"><<a href="mailto:mesnierp@ociweb.com" target="_blank">mesnierp@ociweb.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Prebhakar,<div><br></div><div>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><br></div><div>-Phil</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Sep 22, 2016, at 1:35 AM, Prabhakar Bhatt <<a href="mailto:prabhakar.bhatt@gmail.com" target="_blank">prabhakar.bhatt@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><p>Hi,<br>
 <br>
   Greetings to everybody.<br>
 <br>
  We are using ACE+TAO 2.0a  in out project and facing following
issues in one of the customer production.<br>
 <br>
   The details as follows:<br>
 <br>
    ==============================<wbr>==============================<wbr>======<br>
 <br>
                
TAO VERSION: 2.0a<br>
 <br>
                
HOST MACHINE and OPERATING SYSTEM: LINUX (Red Hat Enterprise Linux Server
release 5.2 (Tikanga) )<br>
                
TARGET MACHINE and OPERATING SYSTEM, if different from HOST: LINUX (Red Hat
Enterprise Linux Server release 5.2 (Tikanga) )<br>
                
COMPILER NAME AND VERSION (AND PATCHLEVEL): gcc-c++-4.1.2-42.el5<br>
                
CONTENTS OF $ACE_ROOT/ace/config.h : #include "ace/config-linux.h"<br>
                
CONTENTS OF $ACE_ROOT/include/makeinclude/<wbr>platform_macros.GNU :include
$(ACE_ROOT)/include/<wbr>makeinclude/platform_linux.GNU<br>
                              <wbr>                              <wbr>                              <wbr>                              <wbr>    
INSTALL_PREFIX=/tmp/TAO-INSTAL<br>
                
CONTENTS OF $ACE_ROOT/bin/<wbr>MakeProjectCreator/config/<wbr>default.features: File is
not present.<br>
                
LEVEL OF URGENCY (LOW, MEDIUM, or HIGH): HIGH<br>
                
AREA/CLASS/EXAMPLE AFFECTED: Change in BiDirectional Port causes disconnection
between server and client AND TAO traces not logged.<br>
                
DOES THE PROBLEM AFFECT:<br>
                              <wbr>   
COMPILATION? No<br>
                              <wbr>   
LINKING? No <br>
                              <wbr>   
On Unix systems, did you run make realclean first? No<br>
                              <wbr>   
EXECUTION? Yes<br>
                              <wbr>   
OTHER (please specify)? No<br>
 <br>
==============================<wbr>==============================<wbr>======<span></span></p><p class="MsoNormal"><br>
SYNOPSIS and DESCRIPTION as follows :<br>
 <br>
==============================<wbr>==============================<wbr>=================<br>
 <br>
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></span></p><p class="MsoNormal">         <b><i>Orb_init
signature : MCC_T_CHAR *defaultOptions_p[] = {"dummy",
"-ORBDebug",
"-ORBDebugLevel","99","-<wbr>ORBLogFile",(char
*)procInfo.proc_trace_info.<wbr>trace_file,0};<span></span></i></b></p><p class="MsoNormal"><br>
2.  We are using <span style="font-size:10pt;font-family:"courier new"">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></span></span></p><div><span style="font-size:10pt;font-family:"courier new""><span> </span></span><br></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new""> Configuration : # TAO Naming<span></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                 NameServiceIOR=corbaloc:iiop:<wbr>localhost:3075/NameService<span></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                 # TAO IIOP Endpoint<span></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                 TAO_ORBENDPOINT="<a>iiop://:6000/<wbr>portspan=31</a>"<span></span></span></p><div><span style="font-size:10pt;font-family:"courier new""><span> </span></span><br></div><div><span style="font-size:10pt;font-family:"courier new""><span> </span></span><br></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new""> Bidirectional policy : <span></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                At client : POAPolicyList[1] =
m_client_orb->create_policy(<wbr>BiDirPolicy::BIDIRECTIONAL_<wbr>POLICY_TYPE, pol);<span></span></span></p><div><span style="font-size:10pt;font-family:"courier new""><span> </span></span><br></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                At Server : <span></span></span></p><div><span style="font-size:10pt;font-family:"courier new"">                             <span></span></span><br></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                          <wbr>callsPOAPolicyList[0] =
m_rootPOA->create_lifespan_<wbr>policy(PortableServer::<wbr>TRANSIENT);<span></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                          callsPOAPolicyList[1] =
m_server_orb->create_policy(<wbr>BiDirPolicy::BIDIRECTIONAL_<wbr>POLICY_TYPE, pol2);<span></span></span></p><div><span> </span><br></div><div><span> </span><br></div><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">Additional
policies are set before calling the Client side callback every time at server
side :<span></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                              policyList[0] =
callbackRef->_get_orb()-><wbr>create_policy(Messaging::<wbr>RELATIVE_RT_TIMEOUT_POLICY_<wbr>TYPE,
rt_timeout_any);<span></span></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">                              CORBA::<wbr>Object_var object =
callbackRef->_set_policy_<wbr>overrides(policyList, CORBA::ADD_OVERRIDE);<span></span></span></p><div>                              <wbr>           <span></span><br></div><p class="MsoNormal">==============================<wbr>==============================<wbr>==============================<wbr>===================<span></span></p><p class="MsoNormal">Please do let me know your answers/suggestions.<span></span></p><div><span> </span><br></div><div><span> </span><br></div><p class="MsoNormal">Thaks and Regards,<span></span></p>

<span style="font-size:12pt;font-family:"times new roman",serif">Prabhakar Bhatt</span><br></div></div></div>
______________________________<wbr>_________________<br>tao-users mailing list<br><a href="mailto:tao-users@list.isis.vanderbilt.edu" target="_blank">tao-users@list.isis.<wbr>vanderbilt.edu</a><br><a href="http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/tao-users" target="_blank">http://list.isis.vanderbilt.<wbr>edu/cgi-bin/mailman/listinfo/<wbr>tao-users</a></div></blockquote></div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><div style="font-size:12.8px"><div style="margin:0px;padding:0px;border:0px"><span style="font-family:arial,helvetica,sans-serif;font-size:large">--</span></div><div style="margin:0px;padding:0px;border:0px"><span style="font-family:arial,helvetica,sans-serif;font-size:large">Phil Mesnier</span><br></div></div><div style="font-size:12.8px"><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="2">Principal Engineer & Partner</font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8px"><span style="font-family:arial,helvetica,sans-serif"><font size="2" color="#000000">OCI | WE ARE SOFTWARE ENGINEERS.</font></span></div><div style="font-size:12.8px"><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">tel  <a href="tel:%2B1.314.579.0066%20x225" value="+13145790066" target="_blank">+1.314.579.0066 x225</a></span><br></div><div style="font-size:12.8px"><a href="http://ociweb.com/" target="_blank">ociweb.com</a></div><div><br></div></div></div></div><br></div><br><br>
</div>
<br></div></div></blockquote></div><br></div>