From 22912b1f7e82542b66f53be02ea1b8be3402e728 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 7 Mar 2008 13:55:00 +0000 Subject: 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/qpid@634678 13f79535-47bb-0310-9956-ffa450edef68 --- python/hello-010-world | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python/hello-010-world') diff --git a/python/hello-010-world b/python/hello-010-world index ff01cf9ed7..8c98170873 100755 --- a/python/hello-010-world +++ b/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)) -- cgit v1.2.1