Yes, I think you're right. There could certainly be cases where you would 
use IDLE without caring about AGE.

On Friday, August 11, 2017 at 3:31:42 PM UTC-7, Arpit Baldeva wrote:
>
> 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/77fc45b9-9c1b-4c3e-beb1-86095440b856%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to