Skip to content

Commit

Permalink
Turning on TCP NODELAY in the Simple Consumer.
Browse files Browse the repository at this point in the history
  • Loading branch information
adyliu committed May 18, 2012
1 parent 4433ef1 commit a8b93d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/sohu/jafka/consumer/SimpleConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private SocketChannel connect() throws IOException {
ch.socket().setReceiveBufferSize(bufferSize);
ch.socket().setSoTimeout(soTimeout);
ch.socket().setKeepAlive(true);
ch.socket().setTcpNoDelay(true);
ch.connect(address);
return ch;
}
Expand Down

0 comments on commit a8b93d6

Please sign in to comment.