Commit bd3c63e7 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

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
parent 25ca91df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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