-
Notifications
You must be signed in to change notification settings - Fork 640
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
Enabling connection keepalive? #154
Comments
This implementation has some client configuration options that serve the same purpose. These channel arguments are listed in this header file. The primary relevant keepalive arguments are |
@murgatroid99 something like: var client = new services.GreeterClient('localhost:50051',
grpc.credentials.createInsecure(),
{ "grpc.keepalive_timeout_ms": 1500 }
); ? |
@dio I was able to confirm the above works by enabling grpc debugging environment variables. https://github.com/grpc/grpc/blob/master/doc/environment_variables.md |
@murgatroid99 do you know how I can retrieve the default values for the following options?
|
Since I'm not aware of handy docs (maybe I'm just not lucky enough to find it), I do search for those keys inside the repo. @siacomuzzi most of those keys (flags) are defined in https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/grpc_types.h e.g. for Then you can search it in the repo hehe. For |
I think this one can be closed. |
I know the
grpc-go
has support for connection keepalive in the client. Is there anything similar in thegrpc-node
client (or does it need to be added?).Asking because searching for "keepalive" in this repository yields nothing and I cannot find any documentation on the matter.
https://github.com/grpc/grpc-go/blob/master/keepalive/keepalive.go#L31
The text was updated successfully, but these errors were encountered: