diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-03-07 13:55:00 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-03-07 13:55:00 +0000 |
| commit | 22912b1f7e82542b66f53be02ea1b8be3402e728 (patch) | |
| tree | 56bf0bf58c7726fe5f4dd7e8d0adad0ac69f2e53 /python/hello-010-world | |
| parent | 6c5dae81f69c2b5fa8fbc3dee0ac90a6bdbb76fa (diff) | |
| download | qpid-python-22912b1f7e82542b66f53be02ea1b8be3402e728.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/qpid@634678 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/hello-010-world')
| -rwxr-xr-x | python/hello-010-world | 8 |
1 files changed, 4 insertions, 4 deletions
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)) |
