From 612adb8459402cb9404b03e6ca0e227dc74a4ceb Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 10 Mar 2015 15:25:54 +0100 Subject: [PATCH] BUG/MAJOR: http: fix stats regression consecutive to HTTP_RULE_RES_YIELD Commit bc4c1ac ("MEDIUM: http/tcp: permit to resume http and tcp custom actions") unfortunately broke the stats applet by moving the clearing of the analyser bit after processing the applet headers. It used to work only in HTTP/1.1 and not in HTTP/1.0. This is 1.6-specific, no backport is needed. --- src/proto_http.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/proto_http.c b/src/proto_http.c index f8ad754b1..f0f4cba49 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -6337,8 +6337,11 @@ int http_process_res_common(struct session *s, struct channel *rep, int an_bit, /* The stats applet needs to adjust the Connection header but we don't * apply any filter there. */ - if (unlikely(objt_applet(s->target) == &http_stats_applet)) + if (unlikely(objt_applet(s->target) == &http_stats_applet)) { + rep->analysers &= ~an_bit; + rep->analyse_exp = TICK_ETERNITY; goto skip_filters; + } /* * We will have to evaluate the filters.