Support some call options for @grpc/grpc-js
Is your feature request related to a problem? Please describe.
@grpc/grpc-js needs support some grpc call options that @grpc/grpc-node supports.
Describe the solution you'd like
Support
- 'grpc.http2.max_ping_strikes'
- 'grpc.http2.min_ping_interval_without_data_ms'
- 'grpc.max_connection_idle_ms'
Describe alternatives you've considered
Additional context
These channel options are currently unsupported because the corresponding features are not implemented in grpc-js, not simply because they are not configurable. As a result some feature work will be needed to add those options, and that will probably take some time.
The first two options are currently unavailable because the grpc-js server does not handle pings directly; they are handled by the built in http2 module. The last one is currently unavailable because connections currently do not go idle at all.
Current I set these options with values like this:
{
'grpc.http2.max_ping_strikes': 0,
'grpc.http2.min_ping_interval_without_data_ms': 1 * 60000, // grpc default
'grpc.max_connection_idle_ms': 10 * 60000,
}
So can these values be treat as default behavior in grpc-js?
The last option in that list is now usable, starting with version 1.9.0.