diff options
author | 2017-09-12 16:24:42 -0700 | |
---|---|---|
committer | 2017-09-13 10:04:11 -0700 | |
commit | b0ed7374b3a1a653612f0f5b5548964c56a93f35 (patch) | |
tree | 3e7ee4cab205a2936829dcd0a6d9f9b7d87c8735 /src/core/ext/filters/max_age | |
parent | d1fefe89dacf198a721053f2b1a3e173f1f24948 (diff) |
Enable filter if either AGE or IDLE is specified; don't require both.
Diffstat (limited to 'src/core/ext/filters/max_age')
-rw-r--r-- | src/core/ext/filters/max_age/max_age_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/filters/max_age/max_age_filter.c b/src/core/ext/filters/max_age/max_age_filter.c index 450f67746f..0ac803ed41 100644 --- a/src/core/ext/filters/max_age/max_age_filter.c +++ b/src/core/ext/filters/max_age/max_age_filter.c @@ -402,7 +402,7 @@ static bool maybe_add_max_age_filter(grpc_exec_ctx* exec_ctx, 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 && + 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; |