Hi,
The server side gRFC
-
https://github.com/ejona86/proposal/blob/a339b01be9eafffb1adc4db8c782469caed18bdc/A9-server-side-conn-mgt.md
- does not mention that both connection age and connection idle need to be
specified together. So shouldn't the following code use an || instead of &&?
static bool maybe_add_max_age_filter(grpc_exec_ctx* exec_ctx,
grpc_channel_stack_builder* builder,
void* arg)
bool enable =
grpc_channel_arg_get_integer(
grpc_channel_args_find(channel_args,
GRPC_ARG_MAX_CONNECTION_AGE_MS),
MAX_CONNECTION_AGE_INTEGER_OPTIONS) != INT_MAX* &&*
grpc_channel_arg_get_integer(
grpc_channel_args_find(channel_args,
GRPC_ARG_MAX_CONNECTION_IDLE_MS),
MAX_CONNECTION_IDLE_INTEGER_OPTIONS) != INT_MAX;
I can see use of setting one without the other.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/2cee3780-c433-4938-ba5a-4b07c8be3efc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.