From bd3c63e7bc648dea5aa65a01abbfb146a8f08e88 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Mon, 5 Feb 2001 18:28:47 +0000 Subject: [PATCH] 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 --- modules/http/http_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1