Glenn Strauss
2c39174649
[build] update tests/SConscript
7 months ago
Glenn Strauss
9abc08d7d0
[build] adjust trace for regex-conditionals
...
adjust trace for regex-conditionals features to include pcre and pcre2
7 months ago
Glenn Strauss
d587265992
[core] "server.graceful-shutdown-timeout" => 8
...
default "server.graceful-shutdown-timeout" => 8
previous default 0; disabled, so infinite timeout
configure previous behavior with:
server.feature-flags += ("server.graceful-shutdown-timeout" => 0)
7 months ago
Glenn Strauss
750414d3bb
[build] default --with-pcre2 unless --with-pcre
7 months ago
Glenn Strauss
86c2d30936
[multiple] remove long-deprecated modules
...
x-ref:
https://wiki.lighttpd.net/Docs_ConfigurationOptions#Deprecated
7 months ago
Glenn Strauss
1334dd4ad5
[core] CCRandomGenerateBytes() for rand on macOS ( fixes #3129 )
...
(thx devnexen)
x-ref:
"rand macOs case handling update"
https://redmine.lighttpd.net/issues/3129
7 months ago
Glenn Strauss
c5d55a9970
[build] cmake build now defaults to C11
...
cmake build now defaults to C11, like meson build
7 months ago
Glenn Strauss
c7c342017f
[build] feature consistency between build types
...
upate config.h.cmake for missing defines
minor adjustments to other builds for features consistency
7 months ago
Glenn Strauss
d8bceb1472
[mod_webdav] copy_file_range() new in FreeBSD 13
...
(take 2)
adjust feature defines for header visibility of copy_file_range()
(introduced in FreeBSD 13)
x-ref:
https://redmine.lighttpd.net/issues/3128
https://github.com/freebsd/freebsd-src/blob/main/sys/sys/cdefs.h#L634
7 months ago
Glenn Strauss
5567fb6495
[mod_webdav] copy_file_range() new in FreeBSD 13
...
(thx devnexen)
adjust feature defines for header visibility of copy_file_range()
(introduced in FreeBSD 13)
x-ref:
https://redmine.lighttpd.net/issues/3128
https://github.com/freebsd/freebsd-src/blob/main/sys/sys/cdefs.h#L634
7 months ago
Glenn Strauss
8e1ad363d1
[mod_webdav] detect truncated copy_file_range()
...
detect truncated file when using copy_file_range(), even though
this should not happen with lighttpd-created temporary files
7 months ago
Glenn Strauss
5b310b36fb
[mod_extforward] support longer PROXY v2 TLV vec
...
support longer HAProxy PROXY protocol v2 TLV vector
(allow up to 2k total for header + TLVs, saved on stack,
and expecting <= MTU size (typically 1536 bytes))
7 months ago
Glenn Strauss
f36908de33
[core] server.core-files support on FreeBSD ( fixes #3128 )
...
(thx devnexen)
x-ref:
"server.core-files support on FreeBSD proposal"
https://redmine.lighttpd.net/issues/3128
8 months ago
Glenn Strauss
2fc6e113f6
[build] do not check for prctl; HAVE_PRCTL unused
8 months ago
Glenn Strauss
3551dd74a5
[core] use lower limit for max-fds if !setrlimit
...
use lower limit for server.max-fds if setrlimit() fails
8 months ago
Glenn Strauss
b6c70a1e72
[core] quiet coverity noise
8 months ago
Glenn Strauss
b8ef3f855c
[core] connection_state_machine_h2() tweaks
8 months ago
Glenn Strauss
e80f11b48f
[core] connection_state_machine_loop() tweaks
8 months ago
Glenn Strauss
f98df3c62b
[core] connection_handle_read_state() tweak
...
no need to set transient state CON_STATE_REQUEST_END
8 months ago
Glenn Strauss
2335073cf6
[core] mark expect cond in http_response_send_file
...
mark expected branch conditions in http_response_send_file()
8 months ago
Glenn Strauss
a9ccaaf146
[mod_dirlisting] fix logic inversion in cache
...
Incorrect Content-Type returned for cached dirlisting
(bug in lighttpd 1.4.62 and lighttpd 1.4.63)
8 months ago
Glenn Strauss
cca340dd26
[core] defer retrieving Last-Modified until needed
8 months ago
Glenn Strauss
ea9befb29c
[core] consolidate request restart loop check
...
HANDLER_COMEBACK now handled in http_response_handler()
and noinline marked on some routines so that http_response_handler()
has simpler asm for repeated calls by dynamic handlers to generate
content and return HANDLER_WAIT_FOR_EVENT
8 months ago
Glenn Strauss
44a5601084
[core] http_response_has_error_handler()
...
separate cold function to check/setup error handler for request
8 months ago
Glenn Strauss
fa82e03749
[build] pcre2: use pkg-config before pcre2-config
8 months ago
Glenn Strauss
f58e8dda1b
[core] ignore pcre2 "bad JIT option" warning
...
ignore pcre2 bad JIT option warning for use of PCRE2_JIT_COMPLETE
flag with pcre2_jit_compile() returning PCRE2_ERROR_JIT_BADOPTION
x-ref:
"pcre2 - Probable user knowledge bug, but suggestions will be welcome"
https://redmine.lighttpd.net/boards/2/topics/10202
8 months ago
Glenn Strauss
2e0edb8543
[build] -Wno-implicit-fallthrough for ls-hpack
...
-Wno-implicit-fallthrough for ls-hpack on cygwin using recent gcc
8 months ago
Glenn Strauss
a568bf4733
[core] define static_assert for uClibc ( fixes #3127 )
...
(thx aeolio)
define static_assert in algo_xxhash.h for uClibc
x-ref:
"src/algo_xxhash.h: build failure with toolchain using uClibc"
https://redmine.lighttpd.net/issues/3127
8 months ago
Glenn Strauss
42bbd804e3
[core] http_response_write_prepare optimization
...
handle catchall in http_response_prepare() instead of in
http_response_write_prepare()
8 months ago
Glenn Strauss
0ebcfbd7d6
[build] add headers for sendfile() detect on MacOS
...
(thx ryandesign)
x-ref:
d636f118f4
8 months ago
Glenn Strauss
0ba74e2381
[mod_magnet] interface to http_response_send_file
...
st = lighty.c.stat("/path/to/file")
if (st and st.is_file) then
return st["http-response-send-file"]
end
calls http_response_send_file(), providing similar behavior as
mod_staticfile, including handling HTTP conditional requests
8 months ago
Glenn Strauss
96fd7e5d04
[multiple] remove r->physical.etag
...
(no longer used; was used as temporary buffer)
8 months ago
Glenn Strauss
df070173af
[core] add more const to stat_cache_update_entry()
8 months ago
Glenn Strauss
8fe93aa56b
[core] use ETag response header to check cachable
...
honor ETag response header set in lua code in mod_magnet
(instead of having mod_magnet update r->physical.etag)
8 months ago
Glenn Strauss
3909e27f39
[core] http_response_send_file() takes const path
8 months ago
Glenn Strauss
cbd6d5b387
[build] CI builds now use make -j 2
8 months ago
Glenn Strauss
bff5976524
[build] create sha512sum file with release
...
create sha512sum file with release, in addition to sha256sum file
8 months ago
Glenn Strauss
6c8578681d
[doc] SELinux: setsebool -P httpd_setrlimit on
...
document setrlimit() under SELinux may need one-time setup
setsebool -P httpd_setrlimit on
8 months ago
Glenn Strauss
18850c5c88
[build] check getxattr before attr_get and -lattr
...
check getxattr before attr_get and -lattr;
do not link with -lattr if getxattr is available from glibc
(modern glibc systems do not require libattr-devel build dependency)
8 months ago
Glenn Strauss
8a535e7e06
[mod_webdav] If-None-Match on non-existent entity
...
fix logic inversion on If-None-Match test on non-existent entity
return 412 if If-None-Match: "*" for non-existent entity
x-ref:
"trying to use Joplin Android App with lighttpd"
https://redmine.lighttpd.net/boards/3/topics/10193
8 months ago
Glenn Strauss
b1578f9548
[core] add remote IP to some error msgs ( fixes #3122 )
...
add remote IP to some select error msgs
x-ref:
"Error messages should include client IP"
https://redmine.lighttpd.net/issues/3122
8 months ago
Glenn Strauss
5a257fab51
[core] make setrlimit() warn, not fatal
...
(thx limb)
make setrlimit() issue warning on error, not fatal,
and add suggesting to configure SELinux permissions
8 months ago
Glenn Strauss
b68b805c54
[core] adjust time jump detection ( fixes #3123 )
...
adjust time jump detection to handle when server.max-workers is non-zero
x-ref:
"child exit causes time jump false positive when server.max-workers is non-zero"
https://redmine.lighttpd.net/issues/3123
8 months ago
Glenn Strauss
fae1c05191
[meson] need -lrt with glibc < 2.17 ( fixes #3120 )
...
(thx gzpapp at gmail dot com)
x-ref:
"Building on glibc 2.16 where clock_gettime() is in librt.so"
https://redmine.lighttpd.net/issues/3120
8 months ago
Glenn Strauss
492773a20f
[core] fix trace issued for loading mod_auth ( fixes #3121 )
...
fix trace issued for loading mod_auth after dynamic modules
x-ref:
"Curious message on startup with version 1.4.63"
https://redmine.lighttpd.net/boards/2/topics/10182
"mod_auth warning on startup"
https://redmine.lighttpd.net/issues/3121
8 months ago
Glenn Strauss
18370ed85e
- next is 1.4.64
8 months ago
Glenn Strauss
0340dc943c
[doc] NEWS
8 months ago
Glenn Strauss
ef9608f307
[core] fix reqpool mem corruption in 1.4.62 ( fixes #3118 )
...
x-ref:
"Segfault after updating to version 1.4.62"
https://redmine.lighttpd.net/issues/3118
"Segfault on closing connections"
https://redmine.lighttpd.net/issues/3119
8 months ago
Glenn Strauss
d6debd43ff
[core] isolate use of sys/filio.h
...
isolate use of sys/filio.h to fdevent_ioctl_fionread()
(illumos (OpenIndiana) defines FIONREAD in sys/filio.h)
9 months ago
Glenn Strauss
23b07fa3ef
[core] import xxHash v0.8.1
...
import xxhash.[ch] as algo_xxhash.[ch]
https://github.com/Cyan4973/xxHash
tag: v0.8.1 35b0373c697b5f160d3db26b1cbb45a0d5ba788c
9 months ago