netty: use netty default SO_BACKLOG (#6956)

This commit is contained in:
Jihun Cho 2020-04-22 09:10:17 -07:00 committed by GitHub
parent 459cbc7b44
commit 0059c5ac04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -19,7 +19,6 @@ package io.grpc.netty;
import static com.google.common.base.Preconditions.checkNotNull;
import static io.grpc.netty.NettyServerBuilder.MAX_CONNECTION_AGE_NANOS_DISABLED;
import static io.netty.channel.ChannelOption.ALLOCATOR;
import static io.netty.channel.ChannelOption.SO_BACKLOG;
import static io.netty.channel.ChannelOption.SO_KEEPALIVE;
import com.google.common.base.MoreObjects;
@ -167,7 +166,6 @@ class NettyServer implements InternalServer, InternalWithLogId {
b.group(bossGroup, workerGroup);
b.channelFactory(channelFactory);
// For non-socket based channel, the option will be ignored.
b.option(SO_BACKLOG, 128);
b.childOption(SO_KEEPALIVE, true);
if (channelOptions != null) {