Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gRPC keepalive #930

Merged
merged 4 commits into from
Aug 29, 2024
Merged

feat: add gRPC keepalive #930

merged 4 commits into from
Aug 29, 2024

Conversation

toddbaert
Copy link
Member

Adds gRPC keepalive.

The according to in-line docs, the keepalive in the netty channel is disabled with Long.MAX_VALUE, so I've mapped that from 0.

Signed-off-by: Todd Baert <[email protected]>
@toddbaert toddbaert force-pushed the feat/add-grpc-keepalive-option branch from 5f46247 to f5bad17 Compare August 29, 2024 16:54
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
@toddbaert toddbaert merged commit 6833433 into main Aug 29, 2024
4 checks passed
@toddbaert toddbaert deleted the feat/add-grpc-keepalive-option branch August 29, 2024 17:44
@@ -105,6 +105,7 @@ Given below are the supported configurations:
| socketPath | FLAGD_SOCKET_PATH | String | null | rpc & in-process |
| certPath | FLAGD_SERVER_CERT_PATH | String | null | rpc & in-process |
| deadline | FLAGD_DEADLINE_MS | int | 500 | rpc & in-process |
| keepAliveTime | FLAGD_KEEP_ALIVE_TIME | long | 0 | rpc & in-process |
Copy link
Member

@guidobrei guidobrei Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we somewhere document the unit of this value? The deadline clearly states that it is expecting milliseconds in the variable name. Keep-alive does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants