Glenn Strauss
7792bc7230
[build] meson -Dlua_version=... to specify lua ver
...
(thx herbmillerjr)
x-ref:
https://github.com/gentoo/gentoo/pull/23857
5 months ago
Glenn Strauss
876a1e1b2c
[build] meson: fix typo in variable name
5 months ago
Glenn Strauss
955c95bf51
[mod_mbedtls] changes to build with mbedtls 3.0.0
...
x-ref:
"issues migrating lighttpd mod_mbedtls to mbedtls 3.0.0"
https://github.com/ARMmbed/mbedtls/issues/5331
5 months ago
Glenn Strauss
aeba314454
[build] check headers before some funcs
...
skip some func checks (slow) if expected header does not exist
6 months ago
Glenn Strauss
c0ced4e82b
[build] collect Sun-specific headers and funcs
...
sendfilev() is Solaris-specific (and other OS have other alternatives)
6 months ago
Glenn Strauss
448621e026
[build] collect Sun-specific headers and funcs
6 months 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
6 months ago
Glenn Strauss
1b11cd7aeb
[build] feature consistency between build types
6 months 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
6 months 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
6 months 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
6 months 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
6 months 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
6 months ago
Glenn Strauss
7ead56183b
[build] meson: find pcre2 w/o pkg-config
...
meson: find pcre2 on Illumos w/o pkg-config
6 months ago
Glenn Strauss
750414d3bb
[build] default --with-pcre2 unless --with-pcre
6 months ago
Glenn Strauss
86c2d30936
[multiple] remove long-deprecated modules
...
x-ref:
https://wiki.lighttpd.net/Docs_ConfigurationOptions#Deprecated
6 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
6 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
6 months ago
Glenn Strauss
2fc6e113f6
[build] do not check for prctl; HAVE_PRCTL unused
6 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)
7 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
7 months ago
Glenn Strauss
7512d82ca4
[core] pcre2 support (--with-pcre2)
...
x-ref:
"lighttpd: depends on obsolete pcre3 library"
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000063
7 months ago
Glenn Strauss
bab0e5d084
[tests] combine tests into test_common.c
...
combine common components tests into test_common.c
combine into a single executable to reduce compilation/link redundancy
7 months ago
Glenn Strauss
8e4cf2231e
[tests] t/test_mod_evasive.c
8 months ago
Glenn Strauss
251f97bf4f
[tests] t/test_mod_alias.c
8 months ago
Glenn Strauss
9b3fa6eb2b
[tests] t/test_mod now runs all t/test_mod_*.c
...
combine into a single executable to reduce compilation/link redundancy
8 months ago
Glenn Strauss
741513ecd1
[mod_ssi] merge mod_ssi_expr.c into mod_ssi.c
...
isolate this ancient relic
8 months ago
Glenn Strauss
457362cbe3
[mod_ssi] remove mod_ssi parser generator file
8 months ago
Glenn Strauss
8c7b86a316
[tests] reenable test_mod_ssi in cmake
...
(Instead, workaround added for libtool)
(There must be better ways to do this, but I don't know them right now)
8 months ago
Glenn Strauss
0f51b3728a
[core] fdevent_fdnode.c separate from fdevent.c
8 months ago
Glenn Strauss
7113dcb49b
[core] merge fdevent impls into fdevent_impl.c
8 months ago
Glenn Strauss
ec52917755
[core] fdevent_impl.c separate from fdevent.c
8 months ago
Glenn Strauss
84449e1497
[tests] t/test_mod_ssi
8 months ago
Glenn Strauss
5c18891a94
[build] check for preadv(), pwritev()
8 months ago
Glenn Strauss
b17c37c5e5
[mod_openssl] boringssl compat
9 months ago
Glenn Strauss
5cab11b7ea
[build] check for pread(), pwrite(), splice()
9 months ago
Glenn Strauss
9f62f1b196
[multiple] fdevent_mkostemp()
...
fdevent_mkostemp() with flags arg so that caller can pass O_APPEND
renamed from fdevent_mkstemp_append(), previously always O_APPEND
9 months ago
Glenn Strauss
7b615d5d24
[multiple] de-dup file and piped loggers ( fixes #3101 )
...
de-dup file and piped loggers for error logs and access logs
x-ref:
"RFE: de-dup file and piped loggers"
https://redmine.lighttpd.net/issues/3101
10 months ago
Glenn Strauss
243510dbb4
[core] fdlog.[ch]; fdevent_*_logger_* -> fdlog_*
...
code move and rename fdevent_*_logger_*() to fdlog_*()
10 months ago
Glenn Strauss
cd738d4daa
[build] propagate HAVE_DLFCN_H in builds
10 months ago
Glenn Strauss
1a8d8e0ca5
[core] periodically malloc_trim() to release mem ( fixes #3084 )
...
x-ref:
"Memory fragmentation with HTTP/2 enabled"
https://redmine.lighttpd.net/issues/3084
10 months ago
Glenn Strauss
1783550154
[build] look for malloc.h and mallopt()
10 months ago
Glenn Strauss
ca2898f678
[tests] t/test_mod_indexfile
...
also remove some now-redundant tests from request.t
and reduce scripts and directories under tests
(because automake is sloooow and the fewer dirs, the better)
10 months ago
Glenn Strauss
b5cdc958a7
[mod_magnet] expose md and hmac funcs to lua
...
lighty.c.md("algo", "data")
lighty.c.hmac("algo", "secret", "data")
"algo" can be one of: "md5", "sha1", "sha256", "sha512"
(as long as lighttpd compiled w/ crypto lib supporting those algorithms)
lighty.c.digest_eq("digest1", "digest2")
- performs a timing-safe, case-insensitive comparison of two hex digests
- "digest1" and "digest2" are hex strings (of binary digests)
- returns boolean true or false
lighty.c.secret_eq("data1", "data2")
- performs a timing-safe comparison of two strings
(and attempts to hides differences in string lengths)
- "data1" and "data2" are strings
- returns boolean true or false
lighty.c.time()
- cached time(); seconds since 1 Jan 1970 00:00:00 GMT
(faster than os.time())
lighty.c.rand()
- generate pseudo-random number
Note: the "lighty.c.*" namespace is EXPERIMENTAL / UNSTABLE
In the future, these may be removed, altered, or moved to a different
namespace.
10 months ago
Glenn Strauss
323e03fb2d
[core] remove connection_list_append()
...
merge connection_list_append() into connection_fdwaitqueue_append()
(not converted to singly-linked-list since fdwaitqueue is not expected
to be used during normal operation (except extreme overload condition),
so use allocated list of pointers (allocated when needed) instead of
adding ptr member to (every) allocated struct connection)
remove connections-glue.c
remove inclusion of connections.h by non-base files
10 months ago
Glenn Strauss
8492d0947a
[build] check for sys/filio.h in CMake and meson
...
present in configure.ac and SConstruct,
but missing from src/CMakeLists.txt and src/meson.build
10 months ago
Glenn Strauss
92576a2f4b
[core] Y2038: use _TIME_BITS=64 on 32-bit glibc
...
Y2038: use _TIME_BITS=64 on 32-bit glibc platforms
reference:
https://www.phoronix.com/scan.php?page=news_item&px=Glibc-More-Y2038-Work
10 months ago
Glenn Strauss
91472ab768
[tests] t/test_mod_staticfile
...
move some tests from tests/request.t to src/t/test_mod_staticfile.c
10 months ago
Glenn Strauss
1cd73b08a6
[core] move backtrace and assert macros to ck.[ch]
10 months ago
Glenn Strauss
caff799ccb
[build] look for port.h on Solaris, not sys/port.h
10 months ago