diff options
Diffstat (limited to 'cpp/demo/Ice/nested/NestedI.cpp')
-rw-r--r-- | cpp/demo/Ice/nested/NestedI.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/demo/Ice/nested/NestedI.cpp b/cpp/demo/Ice/nested/NestedI.cpp index 72aba90cd00..5aa7f314074 100644 --- a/cpp/demo/Ice/nested/NestedI.cpp +++ b/cpp/demo/Ice/nested/NestedI.cpp @@ -25,6 +25,11 @@ NestedI::nestedCall(Int level, const NestedPrx& proxy, const Ice::Current&) cout << level << endl; if(--level > 0) { - proxy->nestedCall(level, _self); + // + // Ensure the invocation times out if the nesting level is too + // high and there are no more threads in the thread pool to + // dispatch the call. + // + proxy->ice_invocationTimeout(5000)->nestedCall(level, _self); } } |