List of usage examples for io.netty.channel.epoll EpollChannelOption TCP_QUICKACK
ChannelOption TCP_QUICKACK
To view the source code for io.netty.channel.epoll EpollChannelOption TCP_QUICKACK.
Click Source Link
From source file:io.vertx.core.net.impl.transport.EpollTransport.java
License:Open Source License
@Override public void configure(NetServerOptions options, ServerBootstrap bootstrap) { bootstrap.option(EpollChannelOption.SO_REUSEPORT, options.isReusePort()); if (options.isTcpFastOpen()) { bootstrap.option(EpollChannelOption.TCP_FASTOPEN, options.isTcpFastOpen() ? pendingFastOpenRequestsThreshold : 0); }//from ww w. j a va 2 s . c o m bootstrap.childOption(EpollChannelOption.TCP_QUICKACK, options.isTcpQuickAck()); bootstrap.childOption(EpollChannelOption.TCP_CORK, options.isTcpCork()); super.configure(options, bootstrap); }
From source file:io.vertx.core.net.impl.transport.EpollTransport.java
License:Open Source License
@Override public void configure(ClientOptionsBase options, Bootstrap bootstrap) { if (options.isTcpFastOpen()) { bootstrap.option(EpollChannelOption.TCP_FASTOPEN_CONNECT, options.isTcpFastOpen()); }/*from www .ja v a 2s . c o m*/ bootstrap.option(EpollChannelOption.TCP_QUICKACK, options.isTcpQuickAck()); bootstrap.option(EpollChannelOption.TCP_CORK, options.isTcpCork()); super.configure(options, bootstrap); }