|
Revision tags: lighttpd-1.4.69 |
|
| #
6516c5a2 |
| 19-Jan-2023 |
Glenn Strauss <[email protected]> |
[multiple] clang -Wstrict-prototypes for C2x
adjustments to compile warnings-free with recent clang changes that warn about potential behavior change for non-prototypes, including generic function p
[multiple] clang -Wstrict-prototypes for C2x
adjustments to compile warnings-free with recent clang changes that warn about potential behavior change for non-prototypes, including generic function pointers e.g. int(*)()
x-ref: https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521 https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2432.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2841.htm
show more ...
|
|
Revision tags: lighttpd-1.4.68 |
|
| #
5e14db43 |
| 10-Dec-2022 |
Glenn Strauss <[email protected]> |
[multiple] employ ck_calloc, ck_malloc shared code
employ ck_calloc(), ck_malloc() shared code to slightly reduce code size (centralize the ck_assert() to check that memory allocation succeeded)
|
| #
c412bb59 |
| 08-Dec-2022 |
Glenn Strauss <[email protected]> |
[multiple] employ ck_realloc_u32() shared code
employ ck_realloc_u32() shared code to slightly reduce code size
|
| #
3bc7866f |
| 05-Dec-2022 |
Glenn Strauss <[email protected]> |
[core] check for built-in plugins before dlopen
|
|
Revision tags: lighttpd-1.4.67, lighttpd-1.4.66, lighttpd-1.4.65, lighttpd-1.4.64, lighttpd-1.4.63, lighttpd-1.4.62, lighttpd-1.4.61, lighttpd-1.4.60, lighttpd-1.4.59, lighttpd-1.4.58, lighttpd-1.4.57, lighttpd-1.4.56 |
|
| #
f49b2d74 |
| 26-Nov-2020 |
Glenn Strauss <[email protected]> |
[core] _WIN32 impl of plugins_load()
|
| #
96557115 |
| 18-Feb-2022 |
Glenn Strauss <[email protected]> |
[core] isolate plugins_*() funcs to main server
(future: might rename plugin.c -> plugins.c since the functions contained within are all plugins_*())
|
| #
10b307bd |
| 07-Jan-2022 |
Glenn Strauss <[email protected]> |
[core] (const char *) for srvconf.modules_dir
no need to be allocated (buffer *)
|
| #
9974b57a |
| 05-Nov-2021 |
Glenn Strauss <[email protected]> |
[core] run plugin cleanup hooks in reverse
run plugin cleanup hooks in reverse to balance ctor/dtor-like plugin behaviors
|
| #
b38817b6 |
| 17-Sep-2021 |
Glenn Strauss <[email protected]> |
[core] mark attr malloc, returns nonnull
mark some core code with attributes malloc, returns nonnull
|
| #
cd738d4d |
| 27-Aug-2021 |
Glenn Strauss <[email protected]> |
[build] propagate HAVE_DLFCN_H in builds
|
| #
07523015 |
| 19-Jul-2021 |
Glenn Strauss <[email protected]> |
[core] make missing mod_deflate not a fatal error
mod_compress was removed in lighttpd 1.4.56, subsumed by mod_deflate.
distros may package mod_deflate separately from the lighttpd package.
Howeve
[core] make missing mod_deflate not a fatal error
mod_compress was removed in lighttpd 1.4.56, subsumed by mod_deflate.
distros may package mod_deflate separately from the lighttpd package.
However, existing configurations may reference mod_compress. lighttpd maps the reference from mod_compress to mod_deflate, but after a system is upgraded to lighttpd 1.4.56 or later, mod_compress may have been removed, and mod_deflate -- which might be a separate package -- might not be installed.
lighttpd will still issue error trace about the missing mod_deflate modules, as well as about the unrecognized configuration directives (compress.* or deflate.*), but this will no longer be a fatal error.
show more ...
|
| #
af3df29a |
| 09-Jun-2021 |
Glenn Strauss <[email protected]> |
[multiple] reduce redundant NULL buffer checks
This commit is a large set of code changes and results in removal of hundreds, perhaps thousands, of CPU instructions, a portion of which are on hot co
[multiple] reduce redundant NULL buffer checks
This commit is a large set of code changes and results in removal of hundreds, perhaps thousands, of CPU instructions, a portion of which are on hot code paths.
Most (buffer *) used by lighttpd are not NULL, especially since buffers were inlined into numerous larger structs such as request_st and chunk.
In the small number of instances where that is not the case, a NULL check is often performed earlier in a function where that buffer is later used with a buffer_* func. In the handful of cases that remained, a NULL check was added, e.g. with r->http_host and r->conf.server_tag.
- check for empty strings at config time and set value to NULL if blank string will be ignored at runtime; at runtime, simple pointer check for NULL can be used to check for a value that has been set and is not blank ("") - use buffer_is_blank() instead of buffer_string_is_empty(), and use buffer_is_unset() instead of buffer_is_empty(), where buffer is known not to be NULL so that NULL check can be skipped - use buffer_clen() instead of buffer_string_length() when buffer is known not to be NULL (to avoid NULL check at runtime) - use buffer_truncate() instead of buffer_string_set_length() to truncate string, and use buffer_extend() to extend
Examples where buffer known not to be NULL: - cpv->v.b from config_plugin_values_init is not NULL if T_CONFIG_BOOL (though we might set it to NULL if buffer_is_blank(cpv->v.b)) - address of buffer is arg (&foo) (compiler optimizer detects this in most, but not all, cases) - buffer is checked for NULL earlier in func - buffer is accessed in same scope without a NULL check (e.g. b->ptr)
internal behavior change: callers must not pass a NULL buffer to some funcs. - buffer_init_buffer() requires non-null args - buffer_copy_buffer() requires non-null args - buffer_append_string_buffer() requires non-null args - buffer_string_space() requires non-null arg
show more ...
|
| #
7b0bc129 |
| 12-May-2021 |
Glenn Strauss <[email protected]> |
[core] reorder hook enum for better mem locality
|
| #
0afab29c |
| 12-May-2021 |
Glenn Strauss <[email protected]> |
[core] merge uri_raw and uri_clean hooks
hooks are run consecutively in http_response_prepare()
merge uri_raw before uri_clean to preserve existing ordering
|
| #
680e6b3b |
| 25-Mar-2021 |
Glenn Strauss <[email protected]> |
[multiple] buffer_copy_path_len2() aggregate
|
| #
dc01487e |
| 25-Mar-2021 |
Glenn Strauss <[email protected]> |
[multiple] use buffer_append_* aggregates
reduces the number of round-trips into some frequently-called routines
|
| #
78ec2b5b |
| 12-Nov-2020 |
Glenn Strauss <[email protected]> |
[core] filter out duplicate modules
filter out modules duplicated in server.modules list
|
|
Revision tags: lighttpd-1.4.56-rc7, lighttpd-1.4.56-rc6, lighttpd-1.4.56-rc5, lighttpd-1.4.56-rc4, lighttpd-1.4.56-rc3, lighttpd-1.4.56-rc2, lighttpd-1.4.56-rc1 |
|
| #
33c8cf41 |
| 25-Jul-2020 |
Glenn Strauss <[email protected]> |
[multiple] rename connection_reset hook to request
rename connection_reset to handle_request_reset
|
| #
28f1867c |
| 08-Jul-2020 |
Glenn Strauss <[email protected]> |
quiet clang analyzer scan-build warnings
(expansion of buffer_string_lenth() inline function and CONST_BUF_LEN() macro, which always check for NULL, appears to cause the analyzer to believe that a
quiet clang analyzer scan-build warnings
(expansion of buffer_string_lenth() inline function and CONST_BUF_LEN() macro, which always check for NULL, appears to cause the analyzer to believe that a pointer might be NULL in cases where it otherwise can not be NULL)
x-ref: http://clang-analyzer.llvm.org/faq.html
show more ...
|
|
Revision tags: lighttpd-1.4.55 |
|
| #
7c7f8c46 |
| 13-Jan-2020 |
Glenn Strauss <[email protected]> |
[multiple] split con, request (very large change)
NB: r->tmp_buf == srv->tmp_buf (pointer is copied for quicker access)
NB: request read and write chunkqueues currently point to connection chun
[multiple] split con, request (very large change)
NB: r->tmp_buf == srv->tmp_buf (pointer is copied for quicker access)
NB: request read and write chunkqueues currently point to connection chunkqueues; per-request and per-connection chunkqueues are not distinct from one another con->read_queue == r->read_queue con->write_queue == r->write_queue
NB: in the future, a separate connection config may be needed for connection-level module hooks. Similarly, might need to have per-request chunkqueues separate from per-connection chunkqueues. Should probably also have a request_reset() which is distinct from connection_reset().
show more ...
|
| #
31d94953 |
| 11-Jan-2020 |
Glenn Strauss <[email protected]> |
[core] store subrequest_handler instead of mode
store pointer to module in handler_module instead of con->mode id
|
| #
eea7cd3c |
| 11-Jan-2020 |
Glenn Strauss <[email protected]> |
[core] store (plugin *) in p->data
(self-referential)
|
| #
ca97505a |
| 08-Dec-2019 |
Glenn Strauss <[email protected]> |
[multiple] store srv->tmp_buf in tb var
rather than using srv->tmp_buf directly in code modifying temp buf (tb)
|
| #
f24e6d69 |
| 28-Nov-2019 |
Glenn Strauss <[email protected]> |
[multiple] plugin_stats array
use global rather than passing around (server *) just for that
li_itostrn() and li_utostrn() return string length (rather than requiring subsequent strlen() to find le
[multiple] plugin_stats array
use global rather than passing around (server *) just for that
li_itostrn() and li_utostrn() return string length (rather than requiring subsequent strlen() to find length)
show more ...
|
| #
50bdb55d |
| 26-Nov-2019 |
Glenn Strauss <[email protected]> |
[multiple] connection hooks no longer get (srv *)
(explicit (server *) not passed; available in con->srv)
|