]> granicus.if.org Git - apache/commitdiff
Tweak the AP_MIN_SENDFILE_BYTES. Not using sendfile on Windows
authorBill Stoddard <stoddard@apache.org>
Mon, 5 Feb 2001 18:28:47 +0000 (18:28 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 5 Feb 2001 18:28:47 +0000 (18:28 +0000)
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

modules/http/http_core.c

index e5a359cc56439fe1f00df1f4b7c81035a794f775..8d38a6a8e90eb5d6d387ff099ed44917f40ee5bc 100644 (file)
@@ -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