diff options
author | Benoit Foucher <benoit@zeroc.com> | 2019-07-16 18:52:11 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2019-07-16 18:54:40 +0200 |
commit | 26725c376f9e674a22dc3ec2a18ea1e2a461a790 (patch) | |
tree | c7b1e9cdfe02317bf73ab9db5eb3c8fcfad2cf3d /cpp/test/Ice/interceptor/Client.cpp | |
parent | Allow to test python mapping with v141 (Visual Studio 2017) (diff) | |
download | ice-26725c376f9e674a22dc3ec2a18ea1e2a461a790.tar.bz2 ice-26725c376f9e674a22dc3ec2a18ea1e2a461a790.tar.xz ice-26725c376f9e674a22dc3ec2a18ea1e2a461a790.zip |
Fixed dispatch interceptor test threading issue, fixes #446
Diffstat (limited to 'cpp/test/Ice/interceptor/Client.cpp')
-rw-r--r-- | cpp/test/Ice/interceptor/Client.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/test/Ice/interceptor/Client.cpp b/cpp/test/Ice/interceptor/Client.cpp index d47dc7abc22..191215fd59d 100644 --- a/cpp/test/Ice/interceptor/Client.cpp +++ b/cpp/test/Ice/interceptor/Client.cpp @@ -285,10 +285,13 @@ Client::testInterceptorExceptions(const Test::MyObjectPrxPtr& prx) batch->ice_ping(ctx); batch->ice_ping(); batch->ice_flushBatchRequests(); + + // Force the last batch request to be dispatched by the server thread using invocation timeouts + // This is required to preven threading issue with the test interceptor implementation which + // isn't thread safe + prx->ice_invocationTimeout(10000)->ice_ping(); } } - // Force the last batch request to be dispatched by the server thread using invocation timeouts - prx->ice_invocationTimeout(10000)->ice_ping(); } DEFINE_TEST(Client) |