[omniORB] timeout associated with omniORB calls

sheena kansal sheena.kansal at gmail.com
Mon Jun 10 06:29:46 BST 2013


On Fri, Jun 7, 2013 at 12:40 AM, sheena kansal <sheena.kansal at gmail.com>wrote:

> Thanks for the quick reply.
>
> so another question, we are hitting lot of omni::TRANSIENT_CallTimedOut
> errors in a recent time.
>
> and its happening mostly from these omniORB calls (marked  with
> <----------):
>
>
>
> -----------------------------------------------------------------------------------------------
> try
> {
>                    omniORB::setClientCallTimeout(
>                                 rootContext,15000);
> 1.                o_ObjRef = rootContext->resolve(name);  <-------
> }
> catch(...){}
>
> ---------------------------------------------------------------------------------------------------
>                                 omniORB::setClientCallTimeout(
>                                                 l_readyObjRef,15000);
> 2.                                 if(l_readyObjRef->_non_existent())
> <------------
>                                 {
>                                        cout<< " sink _non_existent true,
> object not registered";
>                                   }
>
> ---------------------------------------------------------------------------------------------------
>                             iv_Orb = CORBA::ORB_init(argc,argv);
> 3.                               o_NSObj =
> iv_Orb->resolve_initial_references(NSTag.c_str()); -<-----------------
>
> ---------------------------------------------------------------------------------------------------
>
> Do you think it will be resolved by increasing the clientCallTimeout value
> from 15 sec to say 60 sec?
> or its more appropriate to do a retry?
> Or it could be due to some other configuration related setting?
> The configuration is there in my previous mail (
> http://www.omniorb-support.com/pipermail/omniorb-list/2013-June/031417.html
> )
>
>
>
>
>
>
>
> On Thu, Jun 6, 2013 at 7:58 PM, Duncan Grisby <duncan at grisby.org> wrote:
>
>> On Thu, 2013-06-06 at 16:43 +0530, sheena kansal wrote:
>>
>> > What will happen if we give timeout using SinkTimeoutMsec() API?
>> >
>> > for example, we have code like this -
>> > //const long SinkTimeoutMsec = 15000;
>> > omniORB::setClientCallTimeout(
>> rootContext,ServerReady::SinkTimeoutMsec);
>> > o_ObjRef = rootContext->resolve(name);
>>
>> If the resolve() call takes more than 15 seconds, the call will result
>> in a CORBA::TRANSIENT exception. The minor code will be set to the value
>> omni::TRANSIENT_CallTimedOut.
>>
>> > what is the value of default timeout?
>>
>> There is no default timeout. By default calls never time out, so they
>> can block forever. When opening a new TCP connection to a server, the
>> operating system's TCP stack will have a default connection timeout if
>> the server is not reachable, but that value is usually very long.
>>
>> Cheers,
>>
>> Duncan.
>>
>> --
>> Duncan Grisby <duncan at grisby.org>
>>
>>
>
>
> --
> Regards,
> Sheena
>



-- 
Regards,
Sheena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20130610/eb487928/attachment.html>


More information about the omniORB-list mailing list