Merge pull request #14501 from y-zeng/fix_max_idle

Cancel max idle timer when shutting down the server channel
pull/14525/head
Mehrdad Afshari 7 years ago committed by GitHub
commit 7f734dd761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/ext/filters/max_age/max_age_filter.cc

@ -368,6 +368,9 @@ static void channel_connectivity_changed(void* arg, grpc_error* error) {
max_idle_timer, and prevent max_idle_timer from being started in the max_idle_timer, and prevent max_idle_timer from being started in the
future. */ future. */
increase_call_count(chand); increase_call_count(chand);
if (gpr_atm_acq_load(&chand->idle_state) == MAX_IDLE_STATE_SEEN_EXIT_IDLE) {
grpc_timer_cancel(&chand->max_idle_timer);
}
} }
} }

Loading…
Cancel
Save