diff options
author | Rupert Smith <rupertlssmith@apache.org> | 2007-09-26 11:51:14 +0000 |
---|---|---|
committer | Rupert Smith <rupertlssmith@apache.org> | 2007-09-26 11:51:14 +0000 |
commit | a618282fc1cad83c0000eadc1fa46f08dcebc3ce (patch) | |
tree | b99b0440b2d20783bca618e4d4946bc41fc3416a | |
parent | e6ba448c493ad96c48a5a824dc589ff34b216da8 (diff) | |
download | qpid-python-a618282fc1cad83c0000eadc1fa46f08dcebc3ce.tar.gz |
Added timeout to perftests, wait limit set to higher value to stop threads thashing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@579614 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java b/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java index 8247a7cec0..1e01f6bc8e 100644 --- a/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java +++ b/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java @@ -1148,7 +1148,7 @@ public class PingPongProducer implements Runnable /*, MessageListener*/, Excepti // The maximum number of waits before the test gives up and fails. This has been chosen to correspond with
// the test timeout.
- int waitLimit = (int) (TIMEOUT_DEFAULT / 100);
+ int waitLimit = (int) (TIMEOUT_DEFAULT / 10000);
while ((_maxPendingSize > 0))
{
@@ -1167,7 +1167,7 @@ public class PingPongProducer implements Runnable /*, MessageListener*/, Excepti // Wait on the send pause barrier for the limit to be re-established.
try
{
- _sendPauseMonitor.wait(100);
+ _sendPauseMonitor.wait(10000);
numWaits++;
}
catch (InterruptedException e)
|