Skip to content

Commit

Permalink
After timer_handler, if it is DECLINED, processing continues
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama86 committed May 12, 2018
1 parent 4c3e258 commit 6be1734
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/http/ngx_http_mruby_async.c
Expand Up @@ -140,6 +140,11 @@ static void ngx_mrb_timer_handler(ngx_event_t *ev)
rc = NGX_ERROR;
}

if (rc == NGX_DECLINED) {
re->r->phase_handler++;
ngx_http_core_run_phases(re->r);
return;
}
ngx_http_finalize_request(re->r, rc);
}

Expand Down

0 comments on commit 6be1734

Please sign in to comment.