Squashed commit of the following:
commit
1e832db96b33cdc4cfe07c608faef6363262c590
Author: Tom Peters <thopeter@cisco.com>
Date: Tue Apr 17 14:04:48 2018 -0400
http_inspect: broken chunk performance improvement
// If we are skipping to the trailers and next message the broken chunk thwarts us
if (discard_mode)
{
- return SCAN_ABORT;
+ // FIXIT-P Need StreamSplitter::END
+ // With the broken chunk this will run to connection close so we should just stop
+ // processing this flow. But there is no way to ask stream to do that so we must
+ // skip through the rest of the message ourselves.
+ num_flush = length;
+ return SCAN_DISCARD_PIECE;
}
uint32_t skip_amount = length-k;
skip_amount = (skip_amount <= flow_target-data_seen) ? skip_amount :