}
else if (buffer[k] == '\n')
{
+ // FIXIT-L better to keep parsing chunks after bare LF (several changes needed)?
infractions += INF_CHUNK_BARE_LF;
events.create_event(EVENT_BROKEN_CHUNK);
curr_state = CHUNK_BAD;
fprintf(out_file, "Status code: %d\n", status_code_num);
fprintf(out_file, "Type expected: %d/%d\n", type_expected[0], type_expected[1]);
fprintf(out_file, "Data length: %" PRIi64 "/%" PRIi64 "\n", data_length[0], data_length[1]);
+ fprintf(out_file, "Detect depth remaining: %" PRIi64 "/%" PRIi64 "\n",
+ detect_depth_remaining[0], detect_depth_remaining[1]);
+ fprintf(out_file, "File depth remaining: %" PRIi64 "/%" PRIi64 "\n", file_depth_remaining[0],
+ file_depth_remaining[1]);
fprintf(out_file, "Body octets: %" PRIi64 "/%" PRIi64 "\n", body_octets[0], body_octets[1]);
fprintf(out_file, "Pipelining: front %d back %d overflow %d underflow %d\n", pipeline_front,
pipeline_back, pipeline_overflow, pipeline_underflow);
{
// FIXIT-M Bidirectional file processing is problematic so we don't do it. When the library
// fully supports it remove the outer if statement that prevents it from being done.
- if (session_data->file_depth_remaining[1-source_id] == 0)
+ if (session_data->file_depth_remaining[1-source_id] <= 0)
{
if ((session_data->file_depth_remaining[source_id] = FileService::get_max_file_depth()) < 0)
{
session_data->file_depth_remaining[source_id] = 0;
}
}
+ else
+ {
+ session_data->file_depth_remaining[source_id] = 0;
+ }
}
void NHttpMsgHeader::setup_decompression()