From: Bill Stoddard Date: Mon, 5 Feb 2001 18:28:47 +0000 (+0000) Subject: Tweak the AP_MIN_SENDFILE_BYTES. Not using sendfile on Windows X-Git-Tag: APACHE_2_0_2001_02_09~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a3c98e63b12cffdf7808365c479e8a81010c03c;p=apache Tweak the AP_MIN_SENDFILE_BYTES. Not using sendfile on Windows in the general (non byterange) case is a HUGE performance hit (> 50% in many cases). I also suspect most byterange requests will be for substantially more bytes (a pageful out of a larger document for example). In the uncommon (I believe) cases where fewer bytes are requested, 250 bytes per packet is not too abusive of the network. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87983 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index e5a359cc56..8d38a6a8e9 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -99,7 +99,7 @@ #define AP_LIMIT_UNSET ((long) -1) #define AP_DEFAULT_LIMIT_XML_BODY ((size_t)1000000) -#define AP_MIN_SENDFILE_BYTES (8*1024) +#define AP_MIN_SENDFILE_BYTES (256) /* Server core module... This module provides support for really basic * server operations, including options and commands which control the