File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -653,17 +653,16 @@ static bool setup_from_config(struct lwan *lwan, const char *path)
653
653
long request_buffer_size = parse_long (
654
654
line -> value , (long )default_config .request_buffer_size );
655
655
656
- if (request_buffer_size < 0 ) {
657
- config_error (conf , "Negative request buffer size requested" );
658
- } else if (request_buffer_size > 16 * (1 << 20 )) {
656
+ if (request_buffer_size > 16 * (1 << 20 )) {
659
657
config_error (conf ,
660
658
"Request buffer can't be over 16MiB" );
661
659
} else if (request_buffer_size < DEFAULT_BUFFER_SIZE ) {
662
- lwan_status_warning ("Request buffer size of %ld is smaller than the "
663
- "recommended minimum of %d bytes. This might not "
664
- "be sufficient!" ,
665
- request_buffer_size ,
666
- DEFAULT_BUFFER_SIZE );
660
+ lwan_status_warning ("Using request buffer size of %d bytes instead of the "
661
+ "requested %ld bytes" ,
662
+ DEFAULT_BUFFER_SIZE ,
663
+ request_buffer_size );
664
+
665
+ request_buffer_size = DEFAULT_BUFFER_SIZE ;
667
666
}
668
667
669
668
lwan -> config .request_buffer_size = (size_t )request_buffer_size ;
You can’t perform that action at this time.
0 commit comments