summaryrefslogtreecommitdiff
path: root/qpid/python/hello-010-world
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-03-07 13:55:00 +0000
committerRafael H. Schloming <rhs@apache.org>2008-03-07 13:55:00 +0000
commit1326b8d12d5691ff34f697f6bcfead29166e479f (patch)
treef4a610b58e20fa334d5f8ef70ace6f070fbc62fc /qpid/python/hello-010-world
parent240d6cf2cbabdbfd93dce18f3ef620055fd75592 (diff)
downloadqpid-python-1326b8d12d5691ff34f697f6bcfead29166e479f.tar.gz
added timeouts to hello-010-world; switched to conditions rather than events for handling connection/session state; handle session exceptions
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@634678 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/hello-010-world')
-rwxr-xr-xqpid/python/hello-010-world8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/python/hello-010-world b/qpid/python/hello-010-world
index ff01cf9ed7..8c98170873 100755
--- a/qpid/python/hello-010-world
+++ b/qpid/python/hello-010-world
@@ -29,13 +29,13 @@ ssn.message_transfer("is", None, None, Message(props, "more testing..."))
ssn.message_transfer("a")
ssn.message_transfer("test")
-m1 = ssn.incoming("this").get()
+m1 = ssn.incoming("this").get(timeout=10)
print m1
-m2 = ssn.incoming("is").get()
+m2 = ssn.incoming("is").get(timeout=10)
print m2
-m3 = ssn.incoming("a").get()
+m3 = ssn.incoming("a").get(timeout=10)
print m3
-m4 = ssn.incoming("test").get()
+m4 = ssn.incoming("test").get(timeout=10)
print m4
ssn.message_accept(RangedSet(m1.id, m2.id, m3.id, m4.id))