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
1 year ago
Glenn Strauss
c5d55a9970
[build] cmake build now defaults to C11
...
cmake build now defaults to C11, like meson build
1 year 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
1 year 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
1 year 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
1 year 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
1 year 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))
1 year 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
1 year ago
Glenn Strauss
2fc6e113f6
[build] do not check for prctl; HAVE_PRCTL unused
1 year ago
Glenn Strauss
3551dd74a5
[core] use lower limit for max-fds if !setrlimit
...
use lower limit for server.max-fds if setrlimit() fails
1 year ago
Glenn Strauss
b6c70a1e72
[core] quiet coverity noise
1 year ago
Glenn Strauss
b8ef3f855c
[core] connection_state_machine_h2() tweaks
1 year ago
Glenn Strauss
e80f11b48f
[core] connection_state_machine_loop() tweaks
1 year ago
Glenn Strauss
f98df3c62b
[core] connection_handle_read_state() tweak
...
no need to set transient state CON_STATE_REQUEST_END
1 year ago
Glenn Strauss
2335073cf6
[core] mark expect cond in http_response_send_file
...
mark expected branch conditions in http_response_send_file()
1 year 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)
1 year ago
Glenn Strauss
cca340dd26
[core] defer retrieving Last-Modified until needed
1 year 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
1 year ago
Glenn Strauss
44a5601084
[core] http_response_has_error_handler()
...
separate cold function to check/setup error handler for request
1 year ago
Glenn Strauss
fa82e03749
[build] pcre2: use pkg-config before pcre2-config
1 year 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
1 year ago
Glenn Strauss
2e0edb8543
[build] -Wno-implicit-fallthrough for ls-hpack
...
-Wno-implicit-fallthrough for ls-hpack on cygwin using recent gcc
1 year 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
1 year ago
Glenn Strauss
42bbd804e3
[core] http_response_write_prepare optimization
...
handle catchall in http_response_prepare() instead of in
http_response_write_prepare()
1 year ago
Glenn Strauss
0ebcfbd7d6
[build] add headers for sendfile() detect on MacOS
...
(thx ryandesign)
x-ref:
d636f118f4
1 year 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
1 year ago
Glenn Strauss
96fd7e5d04
[multiple] remove r->physical.etag
...
(no longer used; was used as temporary buffer)
1 year ago
Glenn Strauss
df070173af
[core] add more const to stat_cache_update_entry()
1 year 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)
1 year ago
Glenn Strauss
3909e27f39
[core] http_response_send_file() takes const path
1 year ago
Glenn Strauss
cbd6d5b387
[build] CI builds now use make -j 2
1 year ago
Glenn Strauss
bff5976524
[build] create sha512sum file with release
...
create sha512sum file with release, in addition to sha256sum file
1 year 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
1 year 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)
1 year 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
1 year 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
1 year 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
1 year 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
1 year 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
1 year 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
1 year ago
Glenn Strauss
18370ed85e
- next is 1.4.64
1 year ago
Glenn Strauss
0340dc943c
[doc] NEWS
1 year 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
1 year 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)
1 year 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
1 year ago
Glenn Strauss
f4143d957e
- next is 1.4.63
1 year ago
Glenn Strauss
a8c939273b
[doc] NEWS
1 year ago
Glenn Strauss
5ca9eca8c4
[core] fix crash when using lighttpd -1 with pipes ( fixes #3117 )
...
(thx povcfe-bug)
In some scenarios with lighttpd -1 on pipes, the event handler
associated with the connection (con) will have been cleaned up,
and a pending event on the one-off oneshot_fdn will not yet have
been handled, leading to a crash. lighttpd typically is used to
handle requests on sockets, not pipes. With nc (netcat), the
requests might be sent over pipes. The bug occurred with the
accommodations made in lighttpd to handle the request over pipes.
x-ref:
"Trigger crash when using lighttpd -1 with pipes"
https://redmine.lighttpd.net/issues/3117
1 year ago
Glenn Strauss
0573ce1945
[doc] refresh/update dependency lists in doc
1 year ago
Glenn Strauss
60c9612a76
[mod_auth] quiet coverity warning
1 year ago