Skip to content

Commit

Permalink
fix return -> continue
Browse files Browse the repository at this point in the history
need to continue processing the next backend if the current one is
bad...
  • Loading branch information
dormando committed May 16, 2024
1 parent b23c737 commit c3d7c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ void proxy_run_backend_queue(be_head_t *head) {
if (bec->bad) {
// TODO: another counter for fast fails?
_proxy_flush_backend_queue(be);
return;
continue;
} else if (limit && bec->depth > limit) {
proxy_ctx_t *ctx = bec->event_thread->ctx;
STAT_INCR(ctx, request_failed_depth, be->depth);
_proxy_flush_backend_queue(be);
return;
continue;
}

// drop new requests onto end of conn's io-head, reset the backend one.
Expand Down

0 comments on commit c3d7c30

Please sign in to comment.