mirror of https://github.com/grpc/grpc-java.git
netty: use netty default SO_BACKLOG (#6956)
This commit is contained in:
parent
459cbc7b44
commit
0059c5ac04
|
|
@ -19,7 +19,6 @@ package io.grpc.netty;
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
import static io.grpc.netty.NettyServerBuilder.MAX_CONNECTION_AGE_NANOS_DISABLED;
|
import static io.grpc.netty.NettyServerBuilder.MAX_CONNECTION_AGE_NANOS_DISABLED;
|
||||||
import static io.netty.channel.ChannelOption.ALLOCATOR;
|
import static io.netty.channel.ChannelOption.ALLOCATOR;
|
||||||
import static io.netty.channel.ChannelOption.SO_BACKLOG;
|
|
||||||
import static io.netty.channel.ChannelOption.SO_KEEPALIVE;
|
import static io.netty.channel.ChannelOption.SO_KEEPALIVE;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
|
|
@ -167,7 +166,6 @@ class NettyServer implements InternalServer, InternalWithLogId {
|
||||||
b.group(bossGroup, workerGroup);
|
b.group(bossGroup, workerGroup);
|
||||||
b.channelFactory(channelFactory);
|
b.channelFactory(channelFactory);
|
||||||
// For non-socket based channel, the option will be ignored.
|
// For non-socket based channel, the option will be ignored.
|
||||||
b.option(SO_BACKLOG, 128);
|
|
||||||
b.childOption(SO_KEEPALIVE, true);
|
b.childOption(SO_KEEPALIVE, true);
|
||||||
|
|
||||||
if (channelOptions != null) {
|
if (channelOptions != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue