This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch 10-Dev
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/10-Dev by this push:
new 54f090c30 Reply with a 503 response when per_server.connection.max is
exceeded (#9121)
54f090c30 is described below
commit 54f090c3044f9afbe88c55bffe390280cc2e5451
Author: Brian Neradt <[email protected]>
AuthorDate: Tue Oct 4 19:57:46 2022 -0500
Reply with a 503 response when per_server.connection.max is exceeded (#9121)
When the number of origin connections to a server exceeds
proxy.config.http.per_server.connection.max, we should reply with a 503.
This is done on master, but after a refactoring in 10-Dev, this was
missed. This adds the call back in that replies with a 503 when the max
is reached.
Fixes #9120
---
proxy/http/HttpSM.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 5391936d8..62d55e64e 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -5206,7 +5206,7 @@ HttpSM::do_http_server_open(bool raw)
HTTP_INCREMENT_DYN_STAT(http_origin_connections_throttled_stat);
ct_state.Warn_Blocked(&t_state.txn_conf->outbound_conntrack, sm_id,
ccount - 1, &t_state.current.server->dst_addr.sa,
debug_on && is_debug_tag_set("http") ? "http" :
nullptr);
-
+ send_origin_throttled_response();
return;
} else {
ct_state.Note_Unblocked(&t_state.txn_conf->outbound_conntrack, ccount,
&t_state.current.server->dst_addr.sa);