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

Will C# sdk support "grpc.keepalive_time_ms" option? #15423

Closed
goldenbull opened this issue May 17, 2018 · 4 comments
Closed

Will C# sdk support "grpc.keepalive_time_ms" option? #15423

goldenbull opened this issue May 17, 2018 · 4 comments

Comments

@goldenbull
Copy link
Contributor

#define GRPC_ARG_KEEPALIVE_TIME_MS "grpc.keepalive_time_ms"

and other two options: "grpc.keepalive_timeout_ms" and "grpc.keepalive_permit_without_calls"

@jtattermusch
Copy link
Contributor

All the channel arguments are "supported" in the sense that you can create any channel option by e.g.
new ChannelOption("grpc.keepalive_time_ms", yourValue) and then pass it to channel constructor.

@JamesXiao
Copy link

Hi @jtattermusch :
I tried this setting about keep alive, but the connection still get closed after idle for like 30 minutes (should not happen if the keep alive ping have bean properly set), and the disconnect event on channel is not triggered, I can only detect the disconnection till a new request is fired.

What I encountered is very similar to this thread:
https://groups.google.com/forum/#!topic/grpc-io/doa2tBP0HK0

I am not sure if there is already a github issue raised by the original author, so I comment here.

@jtattermusch
Copy link
Contributor

@JamesXiao have you set all of "grpc.keepalive_time_ms", "grpc.keepalive_timeout_ms" and "grpc.keepalive_permit_without_calls"?

@JamesXiao
Copy link

yes, it works now, with
GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS set to 1
and
GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA set to 0

@lock lock bot locked as resolved and limited conversation to collaborators Mar 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants