hyperscan icon indicating copy to clipboard operation
hyperscan copied to clipboard

Changing the database in the middle of stream matching

Open kiarashgl opened this issue 5 years ago • 1 comments

Hello

I want to use Hyperscan for matching some streaming data, after some usage of a stream created from a compiled database, I change the related database (by compiling a new set of strings into it). Does it affect the stream, which was created from the old database? Is it still usable for further matching? If yes, does it return the old regular expressions compiled into the database, or it includes the newly added expressions?

Thanks for your time.

kiarashgl avatar Feb 05 '20 14:02 kiarashgl

When you changed the database, you should close the old stream and open a new stream according to the new database.

fatchanghao avatar Feb 06 '20 02:02 fatchanghao