Squashed commit of the following:
commit
ac6c621966284a445cc295569842129e24517951
Author: Nihal Desai <nihdesai@cisco.com>
Date: Wed Jun 2 15:02:09 2021 -0400
http_inspect: limit section size target for file processing
{
// Need data for file processing or publishing
session_data->stretch_section_to_packet[source_id] = true;
- session_data->section_size_target[source_id] = target_size;
+ const int64_t max_remaining = (file_depth_remaining > publish_depth_remaining) ?
+ file_depth_remaining : publish_depth_remaining;
+ session_data->section_size_target[source_id] = (max_remaining <= target_size) ?
+ max_remaining : target_size;
}
return;
}