summaryrefslogtreecommitdiff
path: root/py/demo/Ice/hello/Client.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-05-23 11:59:44 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-05-23 11:59:44 +0200
commitd81701ca8182942b7936f9fd84a019b695e9c890 (patch)
treedc036c9d701fbbe1afad67782bd78572c0f61974 /py/demo/Ice/hello/Client.py
parentFixed bug ICE-5543: stringToIdentity bug with escaped escapes (diff)
downloadice-d81701ca8182942b7936f9fd84a019b695e9c890.tar.bz2
ice-d81701ca8182942b7936f9fd84a019b695e9c890.tar.xz
ice-d81701ca8182942b7936f9fd84a019b695e9c890.zip
Added support for invocation timeouts and ACM heartbeats
Diffstat (limited to 'py/demo/Ice/hello/Client.py')
-rwxr-xr-xpy/demo/Ice/hello/Client.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/demo/Ice/hello/Client.py b/py/demo/Ice/hello/Client.py
index f99206c9f51..acb925d3ab3 100755
--- a/py/demo/Ice/hello/Client.py
+++ b/py/demo/Ice/hello/Client.py
@@ -37,7 +37,7 @@ class Client(Ice.Application):
return 1
twoway = Demo.HelloPrx.checkedCast(\
- self.communicator().propertyToProxy('Hello.Proxy').ice_twoway().ice_timeout(-1).ice_secure(False))
+ self.communicator().propertyToProxy('Hello.Proxy').ice_twoway().ice_secure(False))
if not twoway:
print(args[0] + ": invalid proxy")
return 1
@@ -83,9 +83,9 @@ class Client(Ice.Application):
else:
timeout = -1
- twoway = Demo.HelloPrx.uncheckedCast(twoway.ice_timeout(timeout))
- oneway = Demo.HelloPrx.uncheckedCast(oneway.ice_timeout(timeout))
- batchOneway = Demo.HelloPrx.uncheckedCast(batchOneway.ice_timeout(timeout))
+ twoway = Demo.HelloPrx.uncheckedCast(twoway.ice_invocationTimeout(timeout))
+ oneway = Demo.HelloPrx.uncheckedCast(oneway.ice_invocationTimeout(timeout))
+ batchOneway = Demo.HelloPrx.uncheckedCast(batchOneway.ice_invocationTimeout(timeout))
if timeout == -1:
print("timeout is now switched off")