diff options
author | dormando <dormando@rydia.net> | 2020-06-30 18:19:47 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-07-02 15:05:22 -0700 |
commit | 53b4d74234cdbf42263b49885499ff977b215451 (patch) | |
tree | a62ce1e5f208c4307f041b389d1ac3c184781e8d /t/stats.t | |
parent | 0271aa9e4c96a884a700070a3d7f3afffc276620 (diff) | |
download | memcached-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-x | t/stats.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |