From b39a1fdca3d12691c67d51ea2a3cdc77a29f6430 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 22 Jul 2008 18:33:00 +0000 Subject: 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 --- .../src/test/java/org/apache/qpidity/transport/ConnectionTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/common/src/test') 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() { -- cgit v1.2.1