On Mon, Oct 24, 2016 at 4:04 AM, Hiep Pham <hieppso194(a)gmail.com> wrote:
I wanna create a http header filter built on hyperscan. Do you instruct me
or give me some applications build on hyperscan?. Thank you so much.
You can compile one hyperscan database as in simplegrep tool before
starting a server. The database can be shared between requests,
because it is used read-only. A scratch can be allocated once per
worker (OS thread). If your server is single-threaded, you need only
one scratch. In request handler you should call scanning function
similar to what is done in simplegrep tool for each line.