summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [core] poll: fdarray uses fd as index, not fde_ndxpersonal/stbuehler/fix-fdeventStefan Bühler2019-02-161-2/+2
|
* [core] don't call fd event handlers more than once, they might already be ↵Stefan Bühler2019-02-162-2/+2
| | | | gone (fixes segfault)
* [core] dispatch events from within event frameworkGlenn Strauss2019-02-1311-236/+118
| | | | | | event framework now calls interface to dispatch events rather than itself implementing multiple interfaces for fdevent_process() to be able to dispatch events generically.
* [core] fix mixed use of srv->split_vals array (fixes #2932)Glenn Strauss2019-02-131-0/+2
| | | | | | | | | | | regression in mod_evhost in lighttpd 1.4.53 regression in mod_flv_streaming in lighttpd 1.4.51 - lighttpd 1.4.53 (thx moisseev) x-ref: "[regression] %0 pattern does not match hostnames without the domain part" https://redmine.lighttpd.net/issues/2932
* [core] simpler loops to run plugin hooksGlenn Strauss2019-02-131-42/+14
|
* [core] skip plugins_call_cleanup if not init'edGlenn Strauss2019-02-131-2/+1
|
* [core] connection_handle_write() updates con stateGlenn Strauss2019-02-121-17/+3
| | | | (return value was always 0, so remove checks for other values)
* [core] con->is_ssl_sockGlenn Strauss2019-02-122-1/+4
| | | | | flag to indicate if socket protocol is TLS (future use: will be needed with connection upgrade to https; not impl)
* [multiple] reduce code dup in list resizingGlenn Strauss2019-02-1213-119/+22
| | | | | | | | | reduce code duplication in list resizing realloc() of NULL ptr has behavior similar to malloc() Note that if initial size == 0, then code used to adjust size must be += x to ensure the size is non-zero for reallocation. (Multiplying 0 * x, e.g. power-2 resizing, will result in 0.)
* [core] fix gw_backend spelling of directive in errGlenn Strauss2019-02-111-1/+1
| | | | fix gw_backend spelling of bin-path directive in error message
* [core] no keep-alive if POLLRDHUP,empty read queueGlenn Strauss2019-02-101-1/+1
| | | | send Connection: close if POLLRDHUP received and read queue is empty
* [core] discard oversized trailersGlenn Strauss2019-02-101-0/+1
| | | | | | | x-ref: "PVS-Studio Analysis Results" https://redmine.lighttpd.net/boards/3/topics/8459 http://www.fly-server.ru/pvs-studio/lighttpd/
* [mod_auth] minor: adjust config validationGlenn Strauss2019-02-101-1/+1
| | | | | | | x-ref: "PVS-Studio Analysis Results" https://redmine.lighttpd.net/boards/3/topics/8459 http://www.fly-server.ru/pvs-studio/lighttpd/
* [mod_deflate] honor request for x-gzip, x-bzip2Glenn Strauss2019-02-101-15/+59
| | | | | | | | | honor request for x-gzip, x-bzip2 if gzip, bzip2 not requested x-ref: "PVS-Studio Analysis Results" https://redmine.lighttpd.net/boards/3/topics/8459 http://www.fly-server.ru/pvs-studio/lighttpd/
* [multiple] minor: remove duplicated conditionsGlenn Strauss2019-02-102-5/+2
| | | | | | | x-ref: "PVS-Studio Analysis Results" https://redmine.lighttpd.net/boards/3/topics/8459 http://www.fly-server.ru/pvs-studio/lighttpd/
* [mod_accesslog] attempt to reconstruct req lineGlenn Strauss2019-02-105-13/+6
| | | | | cease http_request_parse_reqline() unconditionally copying request line, as request line is currently used only by mod_accesslog 'r' format
* [core] RFC7230 HTTP-version parseGlenn Strauss2019-02-103-47/+15
|
* [core] get_http_method_key() match by strlen firstGlenn Strauss2019-02-093-113/+114
|
* [core] lift code out of request line parse loopGlenn Strauss2019-02-091-53/+27
|
* [core] http_request_parse() mark error paths coldGlenn Strauss2019-02-093-197/+82
|
* [core] mark log_error_write*() funcs coldGlenn Strauss2019-02-091-0/+3
|
* [core] replace con->response.keep_aliveGlenn Strauss2019-02-084-22/+4
| | | | set con->keep_alive = 0 to indicate backend request to close connection
* [core] pass req hdrs buffer to http_request_parseGlenn Strauss2019-02-085-32/+28
|
* [core] prefer buffer_caseless_compare()Glenn Strauss2019-02-081-4/+1
| | | | prefer buffer_caseless_compare() to strcasecmp()
* [core] make parse_request,request.request same bufGlenn Strauss2019-02-081-8/+4
|
* [core] copy request only if might need for loggingGlenn Strauss2019-02-083-38/+37
| | | | copy request header only if we may need to log it upon error
* [core] log_request_header_on_error in one placeGlenn Strauss2019-02-081-65/+6
|
* [core] parse request in connection_read_header()Glenn Strauss2019-02-082-27/+26
|
* [core] perf: optimize connection_read_header()Glenn Strauss2019-02-071-112/+50
|
* [core] helper funcs for connection_state_machine()Glenn Strauss2019-02-041-132/+122
| | | | carve connection_state_machine() into separate functions per state
* [core] quickly clear request buffer for reuseGlenn Strauss2019-02-041-1/+1
|
* [core] store joblist pointer on stackGlenn Strauss2019-02-041-4/+4
|
* [mod_staticfile] search ext array if not emptyGlenn Strauss2019-02-041-1/+1
|
* [core] remove server.hGlenn Strauss2019-02-043-9/+2
|
* [core] srv->max_fds_lowat and srv->max_fds_hiwatGlenn Strauss2019-02-042-2/+7
|
* [core] fdevent_process()Glenn Strauss2019-02-043-40/+15
| | | | process fdevents in fdevent.c
* [core] some server_main_loop() cleanupGlenn Strauss2019-02-041-28/+27
|
* [core] mark startup/shutdown funcs coldGlenn Strauss2019-02-0410-10/+88
|
* [core] separate server_main_loop() func, mark hotGlenn Strauss2019-02-042-49/+64
| | | | | move server main loop into separate func and mark hot separate funcs for signal handling
* [mod_evhost] handle IPv6 literal addr; add testsGlenn Strauss2019-02-022-16/+52
|
* - next is 1.4.54Glenn Strauss2019-01-274-4/+4
|
* [doc] NEWSlighttpd-1.4.53Glenn Strauss2019-01-261-0/+42
|
* [mod_openssl] ssl.privkey directive (optional)Glenn Strauss2019-01-261-7/+16
| | | | | ssl.privkey can be used to specify path to file containing private key in lieu of concatenating certificate and private key into single .pem
* [core] Fix recursive include_shell invocationsMartin Storsjö2019-01-261-2/+2
| | | | | | | | | | | | | | | | | | When the output of include_shell calls include_shell itself, that second invocation must not truncate the buffer used for the outer include_shell. This might sound like a pathological setup in itself, but with e.g. debian's include-conf-enabled.pl, which outputs a list of include statements for all files in /etc/lighttpd/conf-enabled, if any of the *.conf files in that directory invokes include_shell, the parsing of the rest of the files in that directory is effectively aborted. This fixes a regression since commit a46bc4f5de49c742e4bdc6ac7be6a4e567c8d92a in such setups. github: closes #95
* [mod_openssl] ALPN and acme-tls/1 (fixes #2931)Glenn Strauss2019-01-251-1/+194
| | | | | | | | | | | | | ssl.acme-tls-1 = "/path/to/dir" containing .crt.pem and .key.pem named with the SNI name ("<SNI>.crt.pem" and "<SNI>.key.pem") x-ref: "Transport Layer Security (TLS) Application-Layer Protocol Negotiation Extension" https://tools.ietf.org/html/rfc7301 "ACME TLS ALPN Challenge Extension" (TLS-ALPN-01) https://tools.ietf.org/html/draft-ietf-acme-tls-alpn-05 "Support for TLS-ALPN-01" https://redmine.lighttpd.net/issues/2931
* [core] con->uri.scheme is maintained lowercaseGlenn Strauss2019-01-221-3/+2
| | | | | con->uri.scheme is maintained lowercase "http" or "https" so scheme string comparisons need not be case-insensitive
* [mod_webdav] compare COPY, MOVE Destination schemeGlenn Strauss2019-01-221-2/+4
| | | | compare COPY, MOVE Destination scheme with request URI scheme
* [multiple] quiet clang --analyze where trivialGlenn Strauss2019-01-215-5/+10
| | | | quiet clang --analyze warnings where trivial to do so
* [multiple] calloc match ptr type (clang --analyze)Glenn Strauss2019-01-215-5/+5
|
* [mod_expire] look up expire fallback "" explicitlyGlenn Strauss2019-01-211-1/+1
| | | | | | | equivalent to prior code, but more direct (legibile in code) to look up empty string than to walk array. Might be marginally faster to walk array when the list is short, but the lookup is also fairly quick in that case, too.