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 /csharp/test/Ice/interceptor/Client.cs | |
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 'csharp/test/Ice/interceptor/Client.cs')
-rw-r--r-- | csharp/test/Ice/interceptor/Client.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/csharp/test/Ice/interceptor/Client.cs b/csharp/test/Ice/interceptor/Client.cs index 6c8b59cfd52..2345891a324 100644 --- a/csharp/test/Ice/interceptor/Client.cs +++ b/csharp/test/Ice/interceptor/Client.cs @@ -257,10 +257,13 @@ namespace Ice 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(); } } } |