diff --git a/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java b/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java index 8252884b24..8e61e2a7f5 100644 --- a/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java +++ b/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java @@ -41,7 +41,6 @@ import io.grpc.internal.ObjectPool; import io.grpc.internal.SharedResourcePool; import io.grpc.netty.InternalNettyChannelBuilder; import io.grpc.netty.NettyChannelBuilder; -import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nullable; @@ -74,11 +73,7 @@ public final class AltsChannelBuilder extends ForwardingChannelBuilder { /** Creates a gRPC server builder for the given port. */ public static AltsServerBuilder forPort(int port) { - NettyServerBuilder nettyDelegate = - NettyServerBuilder.forAddress(new InetSocketAddress(port)) - .maxConnectionIdle(1, TimeUnit.HOURS) - .keepAliveTime(270, TimeUnit.SECONDS) - .keepAliveTimeout(20, TimeUnit.SECONDS) - .permitKeepAliveTime(10, TimeUnit.SECONDS) - .permitKeepAliveWithoutCalls(true); + NettyServerBuilder nettyDelegate = NettyServerBuilder.forAddress(new InetSocketAddress(port)); return new AltsServerBuilder(nettyDelegate); }