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

[Feature request/question] Support for GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS client configuration option #100

Open
nwaywood opened this issue Feb 6, 2020 · 2 comments

Comments

@nwaywood
Copy link

nwaywood commented Feb 6, 2020

I have been hunting through the source code and from what I can tell the only client config args that are supported currently are these six.

For a GRPC application that I am building atm (I only have control of the client side, not the server side) I need to set the GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS arg to true.

Is there an "unsafe" way for me to set this arg to true in my ClientConfig? Or does it need to be added as a sum type in the source code here?

Thanks in advance!

@Gabriella439
Copy link
Contributor

@nwaywood: It requires a code change, even if you were to use the underlying unsafe primitives. The reason why is that the set of supported arguments is enumerated here:

compression_algorithm_key = 0,
compression_level_key,
user_agent_prefix_key,
user_agent_suffix_key,
max_receive_message_length_key,
max_metadata_size_key,

@nwaywood
Copy link
Author

nwaywood commented Feb 10, 2020

Ok, I'm happy to do a PR but I will need a bit more guidance about what I would need to change please. I am not very familiar with Haskell files that integrate with C (and my Haskell knowledge is beginner-intermediate)

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

No branches or pull requests

2 participants