Setting SO_TIMEOUT on client socket channel

chudak meadandale at gmail.com
Thu Oct 27 21:04:08 EDT 2011


There doesn't appear to be any way to do this. We can set the connect timeout
by using the options method of the client bootstrap, e.g.:

bootstrap.setOption("connectTimeoutMillis", 30);

We can also set other socket options, e.g.:

bootstrap.setOption("tcpNoDelay", true);

We are running our netty client on a mobile device and in low network
coverage situations where we are getting lots of packet loss, especially
during the SSL handshake, the connection hangs indefinitely.

Any reason this isn't supported, especially for OIO?



--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Setting-SO-TIMEOUT-on-client-socket-channel-tp6938557p6938557.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list