diff options
| author | Alan Conway <aconway@apache.org> | 2008-02-18 21:54:02 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-02-18 21:54:02 +0000 |
| commit | c612a6c6200fd9a8f9830cbad062b30b465d3dfe (patch) | |
| tree | fd427336d51e5c091529eb53743592294f7748be /bin | |
| parent | 3966d8be198296525a87a6bd88a42c4bb4f20d03 (diff) | |
| download | qpid-python-c612a6c6200fd9a8f9830cbad062b30b465d3dfe.tar.gz | |
Fixed race condition in the examples: when a listener program prints
its "ready" message, the commands it has sent to the broker may not yet
be complete. This results in sporadic lost messages if the producer is
started immediately (e.g. by a script.)
- Added Session::sync(), wait till all commands to date have completed.
- Call sync() before printing "ready" in listener example programs
- Removed sleep from verify script
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@628875 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/verify | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/verify b/bin/verify index 652f83b83f..251097930e 100755 --- a/bin/verify +++ b/bin/verify @@ -38,8 +38,6 @@ background() { out=`outfile $*` eval "$* $ARGS > $out &" || { fail; return 1; } waitfor $out "$pattern" - # printing the ready message doesn't guarnatee we're ready, so sleep a bit. - sleep 1 } name() { @@ -81,7 +79,7 @@ if [ -n "$QPIDD" ] ; then fi for example in "$@"; do - echo -n "== $example " + echo "== $example " if ( verify $example; ) then echo "PASS"; else echo "FAIL"; RET=1; fi done exit $RET |
