From c3d7c3049b3ba08819b020474367591732776c89 Mon Sep 17 00:00:00 2001 From: dormando Date: Thu, 16 May 2024 15:10:43 -0700 Subject: [PATCH] fix return -> continue need to continue processing the next backend if the current one is bad... --- proxy_network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy_network.c b/proxy_network.c index 19c79e141c..c96adb844d 100644 --- a/proxy_network.c +++ b/proxy_network.c @@ -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.