]> git.ipfire.org Git - thirdparty/suricata.git/commit
stream: configurable stream chunk prealloc 801/head
authorVictor Julien <victor@inliniac.net>
Tue, 28 Jan 2014 16:13:05 +0000 (17:13 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 28 Jan 2014 16:13:05 +0000 (17:13 +0100)
commit84696ebe2a67339f654c21a0e8564b03590aef14
tree31ddc0e3472a50f6983d7dd651da93d9e85d9a38
parentfe1c4951f9ee3c9857143a33731792ff2ba1d643
stream: configurable stream chunk prealloc

The stream chunk pool contains preallocating stream chunks (StreamMsg).
These are used for raw reassembly, used in raw content inspection by
the detection engine. The default setting so far has been 250, which
was hardcoded. This meant that in setups that needed more, allocs and
frees would be happen constantly.

This patch introduces a yaml option to set the 'prealloc' value in the
pool. The default is still 250.

stream.reassembly.chunk-prealloc

Related to feature #1093.
src/stream-tcp-reassemble.c
src/stream.c
src/stream.h