This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push:
new dcc24f2 HTTP2 non persistent metrics sticking over system crash.
dcc24f2 is described below
commit dcc24f2809d6eeaf29692d586a818730a092ae1f
Author: Susan Hinrichs <[email protected]>
AuthorDate: Thu Jun 1 20:36:46 2017 +0000
HTTP2 non persistent metrics sticking over system crash.
(cherry picked from commit 4a09bf54e9ea1124de302248bda4ee9fcade6ef3)
---
proxy/http2/HTTP2.cc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/proxy/http2/HTTP2.cc b/proxy/http2/HTTP2.cc
index c73b55d..2eee5e2 100644
--- a/proxy/http2/HTTP2.cc
+++ b/proxy/http2/HTTP2.cc
@@ -750,12 +750,20 @@ Http2::init()
ink_release_assert(http2_settings_parameter_is_valid({HTTP2_SETTINGS_HEADER_TABLE_SIZE,
header_table_size}));
ink_release_assert(http2_settings_parameter_is_valid({HTTP2_SETTINGS_MAX_HEADER_LIST_SIZE,
max_header_list_size}));
+#define HTTP2_CLEAR_DYN_STAT(x) \
+ do { \
+ RecSetRawStatSum(http2_rsb, x, 0); \
+ RecSetRawStatCount(http2_rsb, x, 0); \
+ } while (0);
+
// Setup statistics
http2_rsb = RecAllocateRawStatBlock(static_cast<int>(HTTP2_N_STATS));
RecRegisterRawStat(http2_rsb, RECT_PROCESS,
HTTP2_STAT_CURRENT_CLIENT_SESSION_NAME, RECD_INT, RECP_NON_PERSISTENT,
static_cast<int>(HTTP2_STAT_CURRENT_CLIENT_SESSION_COUNT), RecRawStatSyncSum);
+ HTTP2_CLEAR_DYN_STAT(HTTP2_STAT_CURRENT_CLIENT_SESSION_COUNT);
RecRegisterRawStat(http2_rsb, RECT_PROCESS,
HTTP2_STAT_CURRENT_CLIENT_STREAM_NAME, RECD_INT, RECP_NON_PERSISTENT,
static_cast<int>(HTTP2_STAT_CURRENT_CLIENT_STREAM_COUNT),
RecRawStatSyncSum);
+ HTTP2_CLEAR_DYN_STAT(HTTP2_STAT_CURRENT_CLIENT_STREAM_COUNT);
RecRegisterRawStat(http2_rsb, RECT_PROCESS,
HTTP2_STAT_TOTAL_CLIENT_STREAM_NAME, RECD_INT, RECP_PERSISTENT,
static_cast<int>(HTTP2_STAT_TOTAL_CLIENT_STREAM_COUNT),
RecRawStatSyncCount);
RecRegisterRawStat(http2_rsb, RECT_PROCESS,
HTTP2_STAT_TOTAL_TRANSACTIONS_TIME_NAME, RECD_INT, RECP_PERSISTENT,
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].