summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-10-19 16:09:29 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-10-19 16:38:47 -0400
commit1f3ad401ba4d7f75f554eaf4defd8ad19582f96c (patch)
treee98af6367b7a203ff07390dba136f0a160cd356f /SConstruct
parent72a5ff1f21fe10e8a8b53dcf18cdb65986d89539 (diff)
downloadlighttpd1.4-1f3ad401ba4d7f75f554eaf4defd8ad19582f96c.tar.gz
lighttpd1.4-1f3ad401ba4d7f75f554eaf4defd8ad19582f96c.zip
[mod_deflate] skip deflate if loadavg too high (fixes #1505)
[mod_deflate] skip deflate if 1 min loadavg too high deflate.max-loadavg = "3.50" # express value as string of float num [mod_compress] skip compression if 1 min loadavg too high compress.max-loadavg = "3.50" # express value as string of float num Feature available on BSD-like systems which have getloadavg() in libc Note: load average calculations are different on different operating systems and different types of system loads, so there is no value that can be recommended for one-size-fits-all. x-ref: "Enable mod_compress to abandon compression when load average is too high" https://redmine.lighttpd.net/issues/1505
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index cda2f7d3..98fe4d77 100644
--- a/SConstruct
+++ b/SConstruct
@@ -221,7 +221,7 @@ if 1:
getuid select signal pathconf madvise prctl\
writev sigaction sendfile64 send_file kqueue port_create localtime_r posix_fadvise issetugid inet_pton \
memset_s explicit_bzero clock_gettime \
- getentropy arc4random jrand48 srandom'))
+ getentropy arc4random jrand48 srandom getloadavg'))
checkFunc(autoconf, 'getrandom', 'linux/random.h')
checkTypes(autoconf, Split('pid_t size_t off_t'))