From 5e9b119a086f5311d5462d86615732eb23ddc65e Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Fri, 5 Apr 2019 12:35:50 -0700 Subject: [PATCH] Use a default binpac flowbuffer policy --- aux/binpac | 2 +- src/main.cc | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/aux/binpac b/aux/binpac index bb2476465e..ce89e30109 160000 --- a/aux/binpac +++ b/aux/binpac @@ -1 +1 @@ -Subproject commit bb2476465e304a00c368bd73d40cc6f734be5311 +Subproject commit ce89e301091fd8fd6ef53701b7b29a79d888b637 diff --git a/src/main.cc b/src/main.cc index 473f3a72e7..09b1ebfaeb 100644 --- a/src/main.cc +++ b/src/main.cc @@ -893,7 +893,11 @@ int main(int argc, char** argv) // Must come after plugin activation (and also after hash // initialization). - binpac::init(); + binpac::FlowBuffer::Policy flowbuffer_policy; + flowbuffer_policy.max_capacity = 10 * 1024 * 1024; + flowbuffer_policy.min_capacity = 512; + flowbuffer_policy.contract_threshold = 2 * 1024 * 1024; + binpac::init(&flowbuffer_policy); init_event_handlers();