static const int MAX_OCTETS = 63780;
static const int GZIP_BLOCK_SIZE = 2048;
static const int MAX_SECTION_STRETCH = 1460;
+static const int MIN_FILE_BLOCK_SIZE = 1;
static const uint32_t HTTP_GID = 119;
static const int GZIP_WINDOW_BITS = 31;
}
else
{
- // Just for file processing
- session_data->section_size_target[source_id] = SnortConfig::get_conf()->max_pdu;
+ // Just for file processing. Split on packet boundaries.
+ session_data->section_size_target[source_id] = MIN_FILE_BLOCK_SIZE;
session_data->stretch_section_to_packet[source_id] = true;
}
return;