Skip to content

Conversation

cfredri4
Copy link
Contributor

This changes:

  • default keepAliveTime on server to 2 hours (to align with gRPC default)
  • default keepAliveTime on client to 5 minutes to align with default permitKeepAliveTime on server (cannot be lower)

This changes:
* default keepAliveTime on server to 2 hours (to align with gRPC default)
* default keepAliveTime on client to 5 minutes to align with default permitKeepAliveTime on server (cannot be lower)
@ST-DDT ST-DDT self-assigned this May 25, 2021
@ST-DDT ST-DDT added the enhancement A feature request or improvement label May 25, 2021
@ST-DDT ST-DDT added this to the 2.13.0 milestone May 25, 2021
@ST-DDT ST-DDT self-requested a review May 25, 2021 11:36
@ST-DDT
Copy link
Collaborator

ST-DDT commented May 25, 2021

Looks good to me. Thanks for your contribution.
Could you please add a link to the source of your information regarding the defaults?
I would like to reference it in the changelog

@cfredri4
Copy link
Contributor Author

Looks good to me. Thanks for your contribution.
Could you please add a link to the source of your information regarding the defaults?
I would like to reference it in the changelog

io.grpc.netty.NettyServerBuilder defines:
private long permitKeepAliveTimeInNanos = TimeUnit.MINUTES.toNanos(5);

io.grpc.internal.GrpcUtil defines:
public static final long DEFAULT_SERVER_KEEPALIVE_TIME_NANOS = TimeUnit.HOURS.toNanos(2L);

@ST-DDT ST-DDT merged commit 9358508 into grpc-ecosystem:master May 25, 2021
@cfredri4 cfredri4 deleted the align-default-keepalive-with-grpc-defaults branch May 26, 2021 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature request or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants