]> git.ipfire.org Git - thirdparty/snort3.git/commit
Merge pull request #2094 in SNORT/snort3 from ~SMINUT/snort3:expect_cache_min_prune...
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 24 Mar 2020 17:51:01 +0000 (17:51 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Tue, 24 Mar 2020 17:51:01 +0000 (17:51 +0000)
commit45a22be0c94a0144e283ac67e4c1a90f28d84c51
tree15a2d2b77c52baf9950dcc7b29b1f83a93cf0074
parent8e4476368f69ee3437e46d72655a0fc49c5a6e25
Merge pull request #2094 in SNORT/snort3 from ~SMINUT/snort3:expect_cache_min_prune to master

Squashed commit of the following:

commit 9eb02b8dabe4bee0a03cbcbf0a991913f014d059
Author: Silviu Minut <sminut@cisco.com>
Date:   Fri Mar 20 22:30:54 2020 -0400

    flow: allow the ExpectCache to force prune, so that we can always make room when the cache is full.

    flow: change the ExpectCache prune logic to only remove a specified number of oldest entries, regardless of node expiration time.

    flow: do away altogether with the loop in ExpectCache::prune, just remove one, only when the cache is full.
src/flow/expect_cache.cc
src/flow/expect_cache.h
src/hash/xhash.h