From: adam Date: Thu, 8 Jul 2004 09:11:27 +0000 (+0000) Subject: default to tcp_no_delay X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ed19d606e069e938959c3de61a1e509b9e68a83b;p=org.ibex.mail.git default to tcp_no_delay darcs-hash:20040708091127-5007d-325db3b379112ead844ded7c71527a4d7ea4e896.gz --- 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(); }