Use a default binpac flowbuffer policy

This commit is contained in:
Jon Siwek 2019-04-05 12:35:50 -07:00
parent f7ee433a55
commit 5e9b119a08
2 changed files with 6 additions and 2 deletions

View file

@ -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();