MINOR: http: Log warning if (add|set)-header fails
This patch adds a warning if an http-(request|reponse) (add|set)-header
rewrite fails to change the respective header in a request or response.
This usually happens when tune.maxrewrite is not sufficient to hold all
the headers that should be added.
diff --git a/include/types/counters.h b/include/types/counters.h
index 06ce617..fd83ebb 100644
--- a/include/types/counters.h
+++ b/include/types/counters.h
@@ -44,6 +44,7 @@
long long failed_req; /* failed requests (eg: invalid or timeout) */
long long denied_conn; /* denied connection requests (tcp-req-conn rules) */
long long denied_sess; /* denied session requests (tcp-req-sess rules) */
+ long long failed_rewrites; /* failed rewrites (warning) */
long long cli_aborts; /* aborted responses during DATA phase caused by the client */
long long srv_aborts; /* aborted responses during DATA phase caused by the server */
@@ -88,6 +89,7 @@
long long srv_aborts; /* aborted responses during DATA phase caused by the server */
long long retries; /* retried and redispatched connections (BE only) */
long long redispatches; /* retried and redispatched connections (BE only) */
+ long long failed_rewrites; /* failed rewrites (warning) */
long long failed_secu; /* blocked responses because of security concerns */
long long failed_checks, failed_hana; /* failed health checks and health analyses for servers */
diff --git a/include/types/stats.h b/include/types/stats.h
index b412433..a22be36 100644
--- a/include/types/stats.h
+++ b/include/types/stats.h
@@ -383,6 +383,7 @@
ST_F_INTERCEPTED,
ST_F_DCON,
ST_F_DSES,
+ ST_F_WREW,
/* must always be the last one */
ST_F_TOTAL_FIELDS