-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
gRPC keepalive read ACK message in java code and GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA option #7237
Comments
Java does have |
Example Use case: will it work? In java netty enabling the three options will it work to send keepalive more time even the data is not send by server frequently? Is their way to read the keepalive acknowledgement message in java code of gRPC? |
For your use-case you only need to set You shouldn't need to change GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA; it isn't what it sounds like at first glance (the name is right but imprecise; it is a workaround for certain scenarios). Instead you should change GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS.
No, there is not. If you want to see such acknowledgements you should use an RPC. |
Seems like this should be resolved. If that is not the case, comment, and it can be reopened. |
We have TCP connections open for very long durations. I have enabled the keepalive on client side to detect the server disconnect scenario.
I have enabled
GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS true
GRPC_ARG_KEEPALIVE_TIME_MS 120 seconds
GRPC_ARG_KEEPALIVE_TIMEOUT_MS 60 seconds
1) Is their way to read the keepalive acknowledgement message in java code of gRPC?
2) The channel are ideal for long time without data, I am trying to set the GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA to 0 in java. I am not finding a way to do it. Can you please suggest?
default value mentioned is 2
https://github.com/grpc/grpc/blob/master/doc/keepalive.md#FAQ
Thanks
The text was updated successfully, but these errors were encountered: