diff options
| author | Alan Conway <aconway@apache.org> | 2009-02-10 21:42:10 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-02-10 21:42:10 +0000 |
| commit | 3029ec8cffc18061dc7bb3a0b6e944e30d7198fa (patch) | |
| tree | 9854d670046d1660e7974973833b0a4b80aa643c /qpid/cpp/src/tests/latencytest.cpp | |
| parent | 83c75e56fe17323a86c65cd7594fdb3be170f834 (diff) | |
| download | qpid-python-3029ec8cffc18061dc7bb3a0b6e944e30d7198fa.tar.gz | |
Fix cluster flow control bug: hang with large messages (>frame-max) and low --cluster-read-max.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@743114 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/latencytest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/latencytest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/latencytest.cpp b/qpid/cpp/src/tests/latencytest.cpp index 29bafb1a68..81ac610001 100644 --- a/qpid/cpp/src/tests/latencytest.cpp +++ b/qpid/cpp/src/tests/latencytest.cpp @@ -223,6 +223,7 @@ Receiver::Receiver(const string& q, Stats& s) : Client(q), mgr(session), count(0 if (msgCount) { std::cout << "Warning: found " << msgCount << " msgs on " << queue << ". Purging..." << std::endl; session.queuePurge(arg::queue=queue); + session.sync(); } SubscriptionSettings settings; if (opts.prefetch) { @@ -245,10 +246,8 @@ void Receiver::received(Message& msg) { ++count; uint64_t sentAt = msg.getDeliveryProperties().getTimestamp(); - //uint64_t sentAt = msg.getHeaders().getTimestamp("sent-at");// TODO: add support for uint64_t as a field table type uint64_t receivedAt = current_time(); - //std::cerr << "Latency: " << (receivedAt - sentAt) << std::endl; stats.update(((double) (receivedAt - sentAt)) / TIME_MSEC); if (!opts.rate && count >= opts.count) { |
