summaryrefslogtreecommitdiff
path: root/t/stats.t
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-06-30 18:19:47 -0700
committerdormando <dormando@rydia.net>2020-07-02 15:05:22 -0700
commit53b4d74234cdbf42263b49885499ff977b215451 (patch)
treea62ce1e5f208c4307f041b389d1ac3c184781e8d /t/stats.t
parent0271aa9e4c96a884a700070a3d7f3afffc276620 (diff)
downloadmemcached-53b4d74234cdbf42263b49885499ff977b215451.tar.gz
fix leak in merged resp/read buffers
The list grows toward next, not prev. Also wasn't zeroing out next ptr. Also didn't unmark free for first resp object. (thanks Prudhviraj!) Adds a couple counters so users can tell if something is wrong as well. response_obj_count is solely for response objects in-flight, they should not be held when idle (except for one bundle per worker thread).
Diffstat (limited to 't/stats.t')
-rwxr-xr-xt/stats.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/stats.t b/t/stats.t
index ad51e5f..a84dc05 100755
--- a/t/stats.t
+++ b/t/stats.t
@@ -28,9 +28,9 @@ if (MemcachedTest::enabled_tls_testing()) {
# when TLS is enabled, stats contains additional keys:
# - ssl_handshake_errors
# - time_since_server_cert_refresh
- is(scalar(keys(%$stats)), 78, "expected count of stats values");
+ is(scalar(keys(%$stats)), 80, "expected count of stats values");
} else {
- is(scalar(keys(%$stats)), 76, "expected count of stats values");
+ is(scalar(keys(%$stats)), 78, "expected count of stats values");
}
# Test initial state