setTcpNoDelay

This commit is contained in:
Tony Garnock-Jones 2011-01-06 09:14:20 -05:00
parent c8937f3f52
commit 7c348b8ff4
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ public class Relay implements Runnable, Node {
public void _connect() throws IOException, InterruptedException {
_sock = new Socket(_hostname, _port);
_sock.setTcpNoDelay(true);
_r = new SexpReader(_sock.getInputStream());
_output = _sock.getOutputStream();
_w = new SexpWriter(_output);