Skip to content

Commit

Permalink
ZOOKEEPER-1238. Linger time should be -1 for Netty sockets. (Skye W-M…
Browse files Browse the repository at this point in the history
… via henryr)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1389656 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
henryr committed Sep 24, 2012
1 parent ef8c40b commit 9e906c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ IMPROVEMENTS:
to be programmatically set (rather than only by reading JAAS
configuration file) (Matteo Bertozzi via phunt)

ZOOKEEPER-1238. Linger time should be -1 for Netty sockets. (Skye
W-M via henryr)

Release 3.4.0 -

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ public void writeComplete(ChannelHandlerContext ctx,
bootstrap.setOption("reuseAddress", true);
// child channels
bootstrap.setOption("child.tcpNoDelay", true);
bootstrap.setOption("child.soLinger", 2);
/* set socket linger to off, so that socket close does not block */
bootstrap.setOption("child.soLinger", -1);

bootstrap.getPipeline().addLast("servercnxnfactory", channelHandler);
}
Expand Down

0 comments on commit 9e906c1

Please sign in to comment.