mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Preallocate memory when SecStreamInBodyInspection is on. 20x speed improvement for 10mb upload. Also simplified modsecurity_request_body_to_stream.
This commit is contained in:
committed by
Felipe Zimmerle
parent
07c3659ddc
commit
afae690655
@@ -287,6 +287,7 @@ struct modsec_rec {
|
||||
unsigned int resbody_contains_html;
|
||||
|
||||
apr_size_t stream_input_length;
|
||||
apr_size_t stream_input_allocated_length;
|
||||
char *stream_input_data;
|
||||
apr_size_t stream_output_length;
|
||||
char *stream_output_data;
|
||||
|
Reference in New Issue
Block a user