Glenn Strauss
bade1c0319
[multiple] remove buffer_init_string()
...
remove (minor) convenience func; easy to replace
1 year ago
Glenn Strauss
10b307bd00
[core] (const char *) for srvconf.modules_dir
...
no need to be allocated (buffer *)
1 year ago
Glenn Strauss
e563ae0173
[build] adjust help strings for pcre2 default
1 year ago
Glenn Strauss
9fcb03b68f
[mod_authn_gssapi] reduce KRB5CCNAME mem alloc
...
reuse KRB5CCNAME path saved in r->env
request_reset() calls plugin cleanups (where KRB5CCNAME path unlinked)
before freeing the string from r->env.
1 year ago
Glenn Strauss
2e0b7cfb07
[mod_authn_gssapi] code reuse: fdevent_mkostemp()
1 year ago
Glenn Strauss
e174e7dfe3
[core] buffer_copy_string() use "" if s is NULL
...
same for buffer_append_string()
1 year ago
Stefan Bühler
f6d6295ab4
[ci] add cmake-asan build type
1 year ago
Stefan Bühler
ae2fb97494
[array] use speaking names for array "fn" vtables for better debugging experience
1 year ago
Stefan Bühler
f3052d6a5d
[asan tests] fix memory leaks
1 year ago
Stefan Bühler
61fa90bbc0
[cmake] add address/undefined sanitize compile options
1 year ago
Stefan Bühler
a092235121
[cmake] raise minimum version to 3.7
...
cmake 3.7.0 was tagged on 2016-11-11
debian stretch (currentyl oldoldstable): 3.7.2
ubuntu bionic (18.04LTS): 3.10.2
1 year ago
Glenn Strauss
8ebe1c5333
[lemon] silence coverity warnings
1 year ago
David Carlier
c0f040eae7
[build] Haiku build fix ( fixes #3136 )
...
Haiku needs to link to additional lib -lnetwork for socket funcs
(similar to Solaris need for -lsocket -lnsl)
(edited: gstrauss)
x-ref:
"haiku build fix proposal"
https://redmine.lighttpd.net/issues/3136
1 year ago
Glenn Strauss
1b11cd7aeb
[build] feature consistency between build types
1 year ago
David Carlier
b6bd11c15e
[core] server.core-files support for solaris ( fixes #3135 )
...
server.core-files support for solaris based systems.
- using setpflags and disable process tracing protection for the current process.
(edited: gstrauss)
x-ref:
"server.core-files support on Solaris based system"
https://redmine.lighttpd.net/issues/3135
1 year ago
Glenn Strauss
3d0f648948
[core] /dev/null is a symlink on Illumos ( fixes #3132 )
...
(thx devnexen)
also fix IPv6 detection on Illumos in CMake
x-ref:
"Solaris little nit build fix and startup fix"
https://redmine.lighttpd.net/issues/3132
1 year ago
Glenn Strauss
94a16b2b53
[build] meson crypt and dl detection on *BSD ( fixes #3133 )
...
(thx devnexen)
x-ref:
"netbsd meson build fix"
https://redmine.lighttpd.net/issues/3133
1 year ago
Glenn Strauss
fa1ee081c3
[build] adjust .gitignore for macOS
1 year ago
Glenn Strauss
f72de7113f
[build] cmake: skip "-Wl,-export-dynamic" Illumos
...
(thx devnexen)
cmake: do not pass "-Wl,-export-dynamic" to Sun ld on Illumos
x-ref:
"Solaris build fix proposal"
https://redmine.lighttpd.net/issues/3130
1 year ago
Glenn Strauss
d6741c58ce
[build] meson misdetects mempcpy on some platforms
...
(thx devnexen)
x-ref:
"Meson misdetects some functions with mingw-w64"
https://github.com/mesonbuild/meson/issues/3672
"Solaris build fix proposal"
https://redmine.lighttpd.net/issues/3130
"netbsd meson build fix"
https://redmine.lighttpd.net/issues/3133
1 year ago
Glenn Strauss
e3c3f27134
[mod_webdav] define HAVE_RENAMEAT2 earlier
...
(including linux/fs.h later might reveal RENAME_NOREPLACE)
1 year ago
Glenn Strauss
0c22c6433e
[mod_webdav] copy acceleration
...
* copy acceleration
* safety for accelerated copying of files > 2 GB on 32-bit systems
* disable hard linking when "deprecated-unsafe-partial-put" => "enable"
(In normal operation, hard-linking is safe for copying since WebDAV
modification of any file involves full upload of file and atomic
replacement, which severs any hard-links. When deprecated unsafe
partial PUT is permitted, that is not the case.)
x-ref:
https://man7.org/linux/man-pages/man2/copy_file_range.2.html
https://www.freebsd.org/cgi/man.cgi?query=copy_file_range&sektion=2&n=1
https://man7.org/linux/man-pages/man2/ioctl_ficlone.2.html
https://keith.github.io/xcode-man-pages/clonefile.2.html
https://keith.github.io/xcode-man-pages/copyfile.3.html
1 year ago
Glenn Strauss
8b38a6eb35
[core] errno_t and rsize_t detection on Illumos
...
(thx devnexen)
1 year ago
Glenn Strauss
7eac25ac7f
[core] hide bsd_accept_filter code on OpenBSD ( fixes #3131 )
...
(thx devnexen)
OpenBSD does not provide SO_ACCEPTFILTER
(This patch shows a good example of why cuddled-else should be avoided)
x-ref:
"Remove unneeded connection bsd filter handling for OpenBSD"
https://redmine.lighttpd.net/issues/3131
1 year ago
Glenn Strauss
b9d58fa723
[build] cmake,meson socket libs for win32, Illumos ( fixes #3130 )
...
(thx devnexen)
cmake, meson: specify socket libs for win32, Illumos
x-ref:
"Solaris build fix proposal"
https://redmine.lighttpd.net/issues/3130
1 year ago
Glenn Strauss
a931b1fce2
[core] define __EXTENSIONS__ on Illumos
...
(thx devnexen)
1 year ago
Glenn Strauss
7ead56183b
[build] meson: find pcre2 w/o pkg-config
...
meson: find pcre2 on Illumos w/o pkg-config
1 year ago
Glenn Strauss
0aa6f73532
[build] cmake build now defaults to C11
...
cmake build now defaults to C11, like meson build
1 year ago
Glenn Strauss
b9706ac49b
[core] errno_t detection on Illumos
...
(thx devnexen)
1 year ago
Glenn Strauss
2c39174649
[build] update tests/SConscript
1 year ago
Glenn Strauss
9abc08d7d0
[build] adjust trace for regex-conditionals
...
adjust trace for regex-conditionals features to include pcre and pcre2
1 year 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)
1 year ago
Glenn Strauss
750414d3bb
[build] default --with-pcre2 unless --with-pcre
1 year ago
Glenn Strauss
86c2d30936
[multiple] remove long-deprecated modules
...
x-ref:
https://wiki.lighttpd.net/Docs_ConfigurationOptions#Deprecated
1 year 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
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