commit | 53b88a5b82caf804b02a2830ae4481d043eeca4e | [log] [tgz] |
---|---|---|
author | Aaron Kruglikov <aaron.kruglikov@us.fujitsu.com> | Tue Jan 19 11:13:23 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Jan 20 00:23:59 2016 +0000 |
tree | a1b03abf685ccbafca53b738cbd91c851df165ea | |
parent | b77b60f979fde634ea970e0c3e7b1ca83ac267e4 [diff] |
Changing timeout to fix lxc node down issue. Change-Id: I585d2fd56d6b1752d4a2f5a2e4a99003ccfdc3f0
diff --git a/utils/netty/src/main/java/org/onlab/netty/NettyMessaging.java b/utils/netty/src/main/java/org/onlab/netty/NettyMessaging.java index dd82804..f48b22c 100644 --- a/utils/netty/src/main/java/org/onlab/netty/NettyMessaging.java +++ b/utils/netty/src/main/java/org/onlab/netty/NettyMessaging.java
@@ -312,6 +312,7 @@ bootstrap.option(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK, 10 * 64 * 1024); bootstrap.option(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK, 10 * 32 * 1024); bootstrap.option(ChannelOption.SO_SNDBUF, 1048576); + bootstrap.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 1000); bootstrap.group(clientGroup); // TODO: Make this faster: // http://normanmaurer.me/presentations/2014-facebook-eng-netty/slides.html#37.0