[omniORB] How to minimize the timeout on a connection broken ?
Fri Aug 23 14:19:00 2002
On Friday 23 August 2002 11:45, Thierry Descombes wrote:
> OmniOrb 3.0.4 does it integrate the notion of interceptors ?
> And, concerning the -ORBclientCallTimeOutPeriod option, isn't it rather
> in second ?
> I may need interceptors... Indeed, my server is the client of another
> Management's program.
> Could you send me a short example ?
My example based on example by Brecht Vermeulen (
with little changes.
insert this in eg2_impl:
// For interceptors
// Thread specific data
cout << "InterceptorFunc ThreadId = " << OffThread::Self() << endl;
unsigned long abs_secs,abs_nanosecs;
unsigned long* TimeOutSec =
cout << "InterceptorFunc Deadline set to " << TimeOutSec <<".\n";
key = omni_thread::allocate_key();
and before call IDL operation:
unsigned long TIMEOUT_IN_MKS = 12345;
All calls from this thread will had TIMEOUT_IN_MKS timeout from that moment.
You can set in each thread this value arbitrary quantity of times.