summaryrefslogtreecommitdiff
path: root/java/common/src/test
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-07-22 18:33:00 +0000
committerRafael H. Schloming <rhs@apache.org>2008-07-22 18:33:00 +0000
commitb39a1fdca3d12691c67d51ea2a3cdc77a29f6430 (patch)
treea83e861b4ee16994c34b3b3b2589706aa7eef5d9 /java/common/src/test
parent1be9772b6d6ba7dbaaf74062b1b87bd49bc6f642 (diff)
downloadqpid-python-b39a1fdca3d12691c67d51ea2a3cdc77a29f6430.tar.gz
Updated the io transport to use a separate write thread with a circular buffer that does opportunistic write batching. Fixed error handling and shutdown for the io transport. Switched default from mina to the io transport for the 0-10 client. Modified InputHandler to accumulate bytes in the outer loop and simplified the state machine accordingly. These changes should address QPID-1188, prevent the Java client from running out of memory when writing messages faster than the network and/or broker can keep up, and in general improve performance.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@678848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src/test')
-rw-r--r--java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java b/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java
index 281b618408..c604aaf3e4 100644
--- a/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java
+++ b/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java
@@ -24,6 +24,7 @@ import org.apache.mina.util.AvailablePortFinder;
import org.apache.qpid.util.concurrent.Condition;
+import org.apache.qpidity.transport.network.io.IoTransport;
import org.apache.qpidity.transport.network.mina.MinaHandler;
import org.apache.qpidity.transport.util.Logger;
@@ -67,7 +68,7 @@ public class ConnectionTest extends TestCase
private Connection connect(final Condition closed)
{
- Connection conn = MinaHandler.connect("localhost", port, new ConnectionDelegate()
+ Connection conn = IoTransport.connect("localhost", port, new ConnectionDelegate()
{
public SessionDelegate getSessionDelegate()
{