Does SO_TIMEOUT turn off a channel without blocking if the channel does not receive read / response in milliseconds of time?
bootstrap.group(workerGroup).channel(NioSocketChannel.class). .handler(channelInitializer).option(ChannelOption.SO_TIMEOUT, 100);
Also there is an option applicable for the server channel? as:
serverBootstrap.group(bossGroup, workerGroup).channel(NioServerSocketChannel.class). localAddress(new InetSocketAddress(8800)).childHandler(serverChannelInitializer). option(ChannelOption.SO_TIMEOUT, 100).bind().sync();
source share