From ed19d606e069e938959c3de61a1e509b9e68a83b Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 8 Jul 2004 09:11:27 +0000 Subject: [PATCH] default to tcp_no_delay darcs-hash:20040708091127-5007d-325db3b379112ead844ded7c71527a4d7ea4e896.gz --- src/org/ibex/io/Connection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ibex/io/Connection.java b/src/org/ibex/io/Connection.java index bb7907b..63da617 100644 --- a/src/org/ibex/io/Connection.java +++ b/src/org/ibex/io/Connection.java @@ -9,7 +9,7 @@ import org.ibex.util.*; public class Connection extends Stream { private final Socket s; public final String vhost; - public Connection(Socket s, String vhost) { super(s); this.vhost = vhost; this.s = s; } + public Connection(Socket s, String vhost) { super(s); this.vhost = vhost; this.s = s; setTcpNoDelay(true); } public int getLocalPort() { return s.getLocalPort(); } public int getRemotePort() { return s.getPort(); } public InetAddress getRemoteAddress() { return ((InetSocketAddress)s.getRemoteSocketAddress()).getAddress(); } -- 1.7.10.4