]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
2 years agohttp_protocol: make request processing more robust for incomplete data
Stefan Eissing [Wed, 21 Jun 2023 12:08:06 +0000 (12:08 +0000)] 
http_protocol: make request processing more robust for incomplete data

- Length restrictions may error on a too long request path, leaving
  the uri unset.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910533 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) http_protocol: if there is a request and an error bucket in the input
Stefan Eissing [Wed, 21 Jun 2023 09:49:13 +0000 (09:49 +0000)] 
  *) http_protocol: if there is a request and an error bucket in the input
     brigade, always process the request bucket first. This gives the proper
     context in which to evaluate the error bucket in.
     Some error access r->method, for example, in their response body.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910530 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: Don't print the banner/copyright when -Q is specified.
Yann Ylavic [Tue, 20 Jun 2023 16:05:31 +0000 (16:05 +0000)] 
ab: Don't print the banner/copyright when -Q is specified.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910520 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: Add POLLERR and POLLHUP to reqevents for implementations that use/need it.
Yann Ylavic [Tue, 20 Jun 2023 16:04:12 +0000 (16:04 +0000)] 
ab: Add POLLERR and POLLHUP to reqevents for implementations that use/need it.

Also, apr_pollset_remove() might return APR_NOTFOUND if a connection is reset
while being poll()ed, don't treat it as an error.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910519 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: Increase MAX_CONCURRENCY hard limit (from 20K to 200K).
Yann Ylavic [Tue, 20 Jun 2023 15:59:38 +0000 (15:59 +0000)] 
ab: Increase MAX_CONCURRENCY hard limit (from 20K to 200K).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910518 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: More accurate stats for time limited (-t) runs.
Yann Ylavic [Tue, 20 Jun 2023 15:53:11 +0000 (15:53 +0000)] 
ab: More accurate stats for time limited (-t) runs.

When ab runs for a limited time, the number of requests configured (or the
default MAX_REQUESTS if not configured) may be lower than than the number
of requests actually/finally achieved, in which case the stats per request
is a window of the actual stats since we can't store all the results.

Rather than taking the last N requests of the run for the stats, do the mean
of all the requests reusing the same window slot, and print that.

If no number of requests is configured for a time limited run, it will stop
only at the end of the time (i.e. MAX_REQUESTS is ignored for the end of
test condition). So MAX_REQUESTS is renamed to TIMED_REQUESTS while at it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910517 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: Follow up to r1910515: Update global counter too..
Yann Ylavic [Tue, 20 Jun 2023 15:20:39 +0000 (15:20 +0000)] 
ab: Follow up to r1910515: Update global counter too..

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910516 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: Count keepalive aborted connections separately.
Yann Ylavic [Tue, 20 Jun 2023 15:15:30 +0000 (15:15 +0000)] 
ab: Count keepalive aborted connections separately.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910515 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: Don't (doubly) count errors as err_length if not actually reading.
Yann Ylavic [Tue, 20 Jun 2023 15:11:25 +0000 (15:11 +0000)] 
ab: Don't (doubly) count errors as err_length if not actually reading.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910514 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: Fix crash with -W when exiting earlya on fatal error.
Yann Ylavic [Tue, 20 Jun 2023 15:08:44 +0000 (15:08 +0000)] 
ab: Fix crash with -W when exiting earlya on fatal error.

When multiple threads are failing (e.g. read/write timeout) it's not
thread-safe to simply/concurrently print the stats and exit. This can
result in garbage being printed or a crash.

Let's cleanly shutdown the threads and do the printing at a single point.
For the places where we want to fail but threads are not started yet we
can simply exit still, so to simplify the stats are not printed in an
atexit() handler.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910513 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_http2: added support for bootstrapping WebSockets via HTTP/2, as
Stefan Eissing [Tue, 20 Jun 2023 12:01:09 +0000 (12:01 +0000)] 
  *) mod_http2: added support for bootstrapping WebSockets via HTTP/2, as
     described in RFC 8441. A new directive 'H2WebSockets on|off' has been
     added. The feature is by default not enabled.
     As also discussed in the manual, this feature should work for setups
     using "ProxyPass backend-url upgrade=websocket" without further changes.
     Special server modules for WebSockets will have to be adapted,
     most likely, as the handling if IO events is different with HTTP/2.
     HTTP/2 WebSockets are supported on platforms with native pipes. This
     excludes Windows.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910507 13f79535-47bb-0310-9956-ffa450edef68

2 years agostealing numbers
Stefan Eissing [Tue, 20 Jun 2023 11:55:50 +0000 (11:55 +0000)] 
stealing numbers

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910506 13f79535-47bb-0310-9956-ffa450edef68

2 years ago * mod_htt2: fixed an inconsistency in main connection io state after the connection
Stefan Eissing [Fri, 16 Jun 2023 08:18:19 +0000 (08:18 +0000)] 
 * mod_htt2: fixed an inconsistency in main connection io state after the connection
   write encountered an error. Related to PR 66649.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910441 13f79535-47bb-0310-9956-ffa450edef68

2 years agoupdate log tags, as usual
Stefan Eissing [Thu, 15 Jun 2023 09:46:00 +0000 (09:46 +0000)] 
update log tags, as usual

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910426 13f79535-47bb-0310-9956-ffa450edef68

2 years agosteal a number
Stefan Eissing [Thu, 15 Jun 2023 09:45:30 +0000 (09:45 +0000)] 
steal a number

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910425 13f79535-47bb-0310-9956-ffa450edef68

2 years agoopenssl needs Ws2_32.lib for WSAGetLastError().
jfclere [Wed, 14 Jun 2023 07:54:01 +0000 (07:54 +0000)] 
openssl needs Ws2_32.lib for WSAGetLastError().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910399 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_http2: fixed a bug that could lead to a crash in main connection
Stefan Eissing [Tue, 13 Jun 2023 14:36:43 +0000 (14:36 +0000)] 
  *) mod_http2: fixed a bug that could lead to a crash in main connection
     output handling. This occured only when the last request on a HTTP/2
     connection had been processed and the session decided to shut down.
     This could lead to an attempt to send a final GOAWAY while the previous
     write was still in progress. See PR 66646.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910386 13f79535-47bb-0310-9956-ffa450edef68

2 years agoArrange ap_h1_response_out_filter() according to include/mod_core.h.
Jean-Frederic Clere [Mon, 12 Jun 2023 13:32:12 +0000 (13:32 +0000)] 
Arrange ap_h1_response_out_filter() according to include/mod_core.h.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910368 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc rebuild.
Lucien Gentis [Sat, 10 Jun 2023 14:58:22 +0000 (14:58 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910341 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc XML file update.
Lucien Gentis [Sat, 10 Jun 2023 14:56:38 +0000 (14:56 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910340 13f79535-47bb-0310-9956-ffa450edef68

2 years agodo not run strlen(3) on a NULL value
Giovanni Bechis [Fri, 9 Jun 2023 15:28:32 +0000 (15:28 +0000)] 
do not run strlen(3) on a NULL value
bz #66639

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910334 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_http2: fixed a bug in flushing pending data on an already closed
Stefan Eissing [Fri, 9 Jun 2023 15:02:21 +0000 (15:02 +0000)] 
  *) mod_http2: fixed a bug in flushing pending data on an already closed
     connection that could lead to a busy loop, preventing the HTTP/2 session
     to close down successfully. Fixed PR 66624.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910331 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* Fix copy and paste error
Ruediger Pluem [Fri, 9 Jun 2023 11:18:02 +0000 (11:18 +0000)] 
* Fix copy and paste error

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910324 13f79535-47bb-0310-9956-ffa450edef68

2 years agofix return codes
Giovanni Bechis [Thu, 8 Jun 2023 09:24:21 +0000 (09:24 +0000)] 
fix return codes
spotted by Yann Ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910304 13f79535-47bb-0310-9956-ffa450edef68

2 years agolog an error if BIO_write(3) fails
Giovanni Bechis [Tue, 6 Jun 2023 22:41:27 +0000 (22:41 +0000)] 
log an error if BIO_write(3) fails

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910269 13f79535-47bb-0310-9956-ffa450edef68

2 years agocheck BIO_read return values
Giovanni Bechis [Tue, 6 Jun 2023 22:25:41 +0000 (22:25 +0000)] 
check BIO_read return values
submitted by Jiasheng Jiang
bz #65922

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910268 13f79535-47bb-0310-9956-ffa450edef68

2 years agomod_ext_filter: check exit status of filter processes
Giovanni Bechis [Tue, 6 Jun 2023 22:02:37 +0000 (22:02 +0000)] 
mod_ext_filter: check exit status of filter processes

Whenever a filter process returns a non-zero exit status, or is killed
by a signal, return a HTTP 500 error, and log the reason.
Ran top-level make update-log-msg-tags to update APLOGNO numbers.

Submitted by: Dimitry Andric <dimitry@unified-streaming.com>

Github: closes #296

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910267 13f79535-47bb-0310-9956-ffa450edef68

2 years agothere is a separate `connectiontimeout`
Eric Covener [Tue, 6 Jun 2023 10:39:15 +0000 (10:39 +0000)] 
there is a separate `connectiontimeout`

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910253 13f79535-47bb-0310-9956-ffa450edef68

2 years agofix link in comment
Giovanni Bechis [Tue, 6 Jun 2023 08:48:27 +0000 (08:48 +0000)] 
fix link in comment

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910252 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc rebuild.
Lucien Gentis [Sat, 3 Jun 2023 13:45:06 +0000 (13:45 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910203 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc XML files updates.
Lucien Gentis [Sat, 3 Jun 2023 13:43:55 +0000 (13:43 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910202 13f79535-47bb-0310-9956-ffa450edef68

2 years agoCI: re-add TEST_H2 apr cache ignore, still needed. :(
Stefan Eissing [Thu, 1 Jun 2023 13:01:28 +0000 (13:01 +0000)] 
CI: re-add TEST_H2 apr cache ignore, still needed. :(

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910165 13f79535-47bb-0310-9956-ffa450edef68

2 years agoCI: re-enable apr caching for TEST_H2, require newer curl for test_h2_601_05
Stefan Eissing [Thu, 1 Jun 2023 12:59:09 +0000 (12:59 +0000)] 
CI: re-enable apr caching for TEST_H2, require newer curl for test_h2_601_05

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910164 13f79535-47bb-0310-9956-ffa450edef68

2 years agoCI: force reset of cached apr for TEST_H2, it seems to be broken
Stefan Eissing [Thu, 1 Jun 2023 12:50:30 +0000 (12:50 +0000)] 
CI: force reset of cached apr for TEST_H2, it seems to be broken

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910163 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) core: add `final_resp_passed` flag to request_rec to allow
Stefan Eissing [Thu, 1 Jun 2023 12:21:03 +0000 (12:21 +0000)] 
  *) core: add `final_resp_passed` flag to request_rec to allow
     ap_die() to judge if it can send out a response. Bump mmn.
     Enable test cases that check errors during response body to
     appear as error on client side.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910161 13f79535-47bb-0310-9956-ffa450edef68

2 years ago * mod_proxy_http2: fixed using the wrong "bucket_alloc" from the backend
Stefan Eissing [Thu, 1 Jun 2023 10:38:53 +0000 (10:38 +0000)] 
 * mod_proxy_http2: fixed using the wrong "bucket_alloc" from the backend
   connection when sending data on the frontend one. This caused crashes
   or infinite loops in rare situations.
 * mod_proxy_http2: fixed a bug in retry/response handling that could lead
   to wrong status codes or HTTP messages send at the end of response bodies
   exceeding the announced content-length.
 * mod_proxy_http2: fix retry handling to not leak temporary errors.
   On detecting that that an existing connection was shutdown by the other
   side, a 503 response leaked even though the request was retried on a
   fresh connection.
 * mod_http2: fixed a bug that did cleanup of consumed and pending buckets in
   the wrong order when a bucket_beam was destroyed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910157 13f79535-47bb-0310-9956-ffa450edef68

2 years agotests: synch with recent changes from mod_h2 repository
Stefan Eissing [Thu, 1 Jun 2023 10:13:28 +0000 (10:13 +0000)] 
tests: synch with recent changes from mod_h2 repository

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910156 13f79535-47bb-0310-9956-ffa450edef68

2 years agoab: STATE_CONNECTED is not used anymore.
Yann Ylavic [Tue, 30 May 2023 09:36:19 +0000 (09:36 +0000)] 
ab: STATE_CONNECTED is not used anymore.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910136 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_proxy_http2: fix retry handling to not leak temporary errors.
Stefan Eissing [Mon, 22 May 2023 14:10:17 +0000 (14:10 +0000)] 
  *) mod_proxy_http2: fix retry handling to not leak temporary errors.
     On detecting that that an existing connection was shutdown by the other
     side, a 503 response leaked even though the request was retried on a
     fresh connection.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909989 13f79535-47bb-0310-9956-ffa450edef68

2 years agotests: parameterize some h2 tests to make fail cases better visible
Stefan Eissing [Mon, 22 May 2023 13:08:20 +0000 (13:08 +0000)] 
tests: parameterize some h2 tests to make fail cases better visible

- make conf setup for test_h2_004_41 local

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909982 13f79535-47bb-0310-9956-ffa450edef68

2 years agoWhen we are at flush_max_threshold and the next bucket is a metadata (i.e. next-...
Christophe Jaillet [Sun, 21 May 2023 17:46:22 +0000 (17:46 +0000)] 
When we are at flush_max_threshold and the next bucket is a metadata (i.e. next->length == 0), we still need to re-check for flush_max_threshold and associated optimisation (is_in_memory_bucket()) when we process this metadata bucket in the next iteration of the loop.

Follow-up to r1892450.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909966 13f79535-47bb-0310-9956-ffa450edef68

2 years agoThe default value of FlushMaxThreshold is defined as AP_FLUSH_MAX_THRESHOLD, which...
Christophe Jaillet [Sun, 21 May 2023 11:28:02 +0000 (11:28 +0000)] 
The default value of FlushMaxThreshold is defined as AP_FLUSH_MAX_THRESHOLD, which is 65535.

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909959 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_http2: avoid double chunked-encoding on internal redirects.
Stefan Eissing [Fri, 19 May 2023 12:17:44 +0000 (12:17 +0000)] 
  *) mod_http2: avoid double chunked-encoding on internal redirects.
     PR 66597 [Yann Ylavic, Stefan Eissing]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909932 13f79535-47bb-0310-9956-ffa450edef68

2 years agomod_authnz_ldap.c: Make sure the authentication variables are set in
Graham Leggett [Fri, 19 May 2023 10:29:02 +0000 (10:29 +0000)] 
mod_authnz_ldap.c: Make sure the authentication variables are set in
all cases where another module is the source of the authentication,
and that authenticated user is looked up in LDAP.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909928 13f79535-47bb-0310-9956-ffa450edef68

2 years agoUpdate log-message tags.
Graham Leggett [Fri, 19 May 2023 10:26:10 +0000 (10:26 +0000)] 
Update log-message tags.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909927 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSign with the signer key. Previously the verify key was used, which only worked
Graham Leggett [Fri, 19 May 2023 10:24:27 +0000 (10:24 +0000)] 
Sign with the signer key. Previously the verify key was used, which only worked
if the signing and verifying keys were the same.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909926 13f79535-47bb-0310-9956-ffa450edef68

2 years agoa few tweaks to SetEnvIfExpr doc
Eric Covener [Mon, 15 May 2023 13:35:56 +0000 (13:35 +0000)] 
a few tweaks to SetEnvIfExpr doc

From a question on IRC, show a backreference example.
Fix a bad copy/paste where a link to <if> was present.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909833 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc rebuild.
Lucien Gentis [Sat, 13 May 2023 13:24:48 +0000 (13:24 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909795 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc XML file update.
Lucien Gentis [Sat, 13 May 2023 13:22:57 +0000 (13:22 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909794 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_http2: v2.0.15 with the following fixes and improvements
Stefan Eissing [Fri, 12 May 2023 11:28:59 +0000 (11:28 +0000)] 
  *) mod_http2: v2.0.15 with the following fixes and improvements
     - New directive 'H2EarlyHint name value' to add headers to a response,
       picked up already when a "103 Early Hints" response is sent. 'name' and
       'value' must comply to the HTTP field restrictions.
       This directive can be repeated several times and header fields of the
       same names add. Sending a 'Link' header with 'preload' relation will
       also cause a HTTP/2 PUSH if enabled and supported by the client.
     - Fixed an issue where requests were not logged and accounted in a timely
       fashion when the connection returns to "keepalive" handling, e.g. when
       the request served was the last outstanding one.
       This led to late appearance in access logs with wrong duration times
       reported.
     - Accurately report the bytes sent for a request in the '%O' Log format.
       This addresses #203, a long outstanding issue where mod_h2 has reported
       numbers over-eagerly from internal buffering and not what has actually
       been placed on the connection.
       The numbers are now the same with and without H2CopyFiles enabled.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909769 13f79535-47bb-0310-9956-ffa450edef68

2 years agoignore errors due to races if a parallel mkdir.sh already
Giovanni Bechis [Tue, 9 May 2023 21:58:27 +0000 (21:58 +0000)] 
ignore errors due to races if a parallel mkdir.sh already
created the dir

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909707 13f79535-47bb-0310-9956-ffa450edef68

2 years agodav_fs_cmds is declared twice in the file... VS 2022 complains about it.
Jean-Frederic Clere [Fri, 5 May 2023 13:26:23 +0000 (13:26 +0000)] 
dav_fs_cmds is declared twice in the file... VS 2022 complains about it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909628 13f79535-47bb-0310-9956-ffa450edef68

2 years agoFollow up to r1909429: Fix scope/block syntax.
Yann Ylavic [Thu, 4 May 2023 10:30:25 +0000 (10:30 +0000)] 
Follow up to r1909429: Fix scope/block syntax.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909606 13f79535-47bb-0310-9956-ffa450edef68

2 years agotests, adding ignore for warnings that child did not exist in time
Stefan Eissing [Tue, 2 May 2023 11:30:41 +0000 (11:30 +0000)] 
tests, adding ignore for warnings that child did not exist in time

- this seems CI related, does not happen on local machine

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909568 13f79535-47bb-0310-9956-ffa450edef68

2 years agotests, make test_h2_106_02 more robust
Stefan Eissing [Tue, 2 May 2023 11:12:25 +0000 (11:12 +0000)] 
tests, make test_h2_106_02 more robust

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909567 13f79535-47bb-0310-9956-ffa450edef68

2 years agotest_h2_700_11, limit parallel connections, better error output
Stefan Eissing [Tue, 2 May 2023 10:37:13 +0000 (10:37 +0000)] 
test_h2_700_11, limit parallel connections, better error output

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909566 13f79535-47bb-0310-9956-ffa450edef68

2 years agotest_h2_200_16, check that we have at least nghttp2 v1.45.0
Stefan Eissing [Tue, 2 May 2023 10:26:08 +0000 (10:26 +0000)] 
test_h2_200_16, check that we have at least nghttp2 v1.45.0

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909565 13f79535-47bb-0310-9956-ffa450edef68

2 years agotests, re-enable http/2 tests in github workflow, install latest rustls-ffi version
Stefan Eissing [Tue, 2 May 2023 10:04:21 +0000 (10:04 +0000)] 
tests, re-enable http/2 tests in github workflow, install latest rustls-ffi version

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909563 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) test: check for recent curl version in proxy tests
Stefan Eissing [Tue, 2 May 2023 09:03:32 +0000 (09:03 +0000)] 
  *) test: check for recent curl version in proxy tests

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909560 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_tls: updating to rustls-ffi version 0.9.2 or higher.
Stefan Eissing [Tue, 2 May 2023 08:36:02 +0000 (08:36 +0000)] 
  *) mod_tls: updating to rustls-ffi version 0.9.2 or higher.
     Checking in configure for proper version installed. Code
     fixes for changed clienthello member name.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909558 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc - rebuild
Lucien Gentis [Sat, 29 Apr 2023 16:07:01 +0000 (16:07 +0000)] 
fr doc - rebuild

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909485 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc - new translated XML files added.
Lucien Gentis [Sat, 29 Apr 2023 16:01:53 +0000 (16:01 +0000)] 
fr doc - new translated XML files added.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909484 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* In the reverse proxy case when we only want to keep encoded slashes untouched
Ruediger Pluem [Fri, 28 Apr 2023 06:20:27 +0000 (06:20 +0000)] 
* In the reverse proxy case when we only want to keep encoded slashes untouched
  we can have decoded '%''s in the URI that got sent to us in the original URL
  as %25. Don't error out in this case but just fall through and have them
  encoded to %25 when forwarding to the backend.

PR: 66580

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909464 13f79535-47bb-0310-9956-ffa450edef68

2 years agomake test cases for mod_tls work, do not clear gen directory on every invocation
Stefan Eissing [Thu, 27 Apr 2023 11:58:41 +0000 (11:58 +0000)] 
make test cases for mod_tls work, do not clear gen directory on every invocation

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909454 13f79535-47bb-0310-9956-ffa450edef68

2 years agomake the h1 test suite work again
Stefan Eissing [Thu, 27 Apr 2023 11:37:27 +0000 (11:37 +0000)] 
make the h1 test suite work again

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909453 13f79535-47bb-0310-9956-ffa450edef68

2 years agomake the http2 test suite working again
Stefan Eissing [Thu, 27 Apr 2023 11:35:51 +0000 (11:35 +0000)] 
make the http2 test suite working again

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909452 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* If we fail to connect to all looked up IP's from the worker lookup cache it
Ruediger Pluem [Thu, 27 Apr 2023 08:15:20 +0000 (08:15 +0000)] 
* If we fail to connect to all looked up IP's from the worker lookup cache it
  might be caused by a change on DNS side. Try another DNS lookup in this case
  and in case this causes a successful connection trigger a refresh of the
  worker lookup cache.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909451 13f79535-47bb-0310-9956-ffa450edef68

2 years agoMake sources build with latest clang version
Stefan Eissing [Thu, 27 Apr 2023 07:14:36 +0000 (07:14 +0000)] 
Make sources build with latest clang version

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909450 13f79535-47bb-0310-9956-ffa450edef68

2 years agomod_status: Remove duplicate keys "BusyWorkers" and "IdleWorkers".
Rainer Jung [Wed, 26 Apr 2023 10:08:42 +0000 (10:08 +0000)] 
mod_status: Remove duplicate keys "BusyWorkers" and "IdleWorkers".
Resolve inconsistency between the previous two occurrences by
counting workers in state SERVER_GRACEFUL no longer as busy,
but instead in a new counter "GracefulWorkers" (or on HTML
view as "workers gracefully restarting"). Also add the graceful
counter as a new column to the existing HTML per process table
for async MPMs.
PR 63300

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909429 13f79535-47bb-0310-9956-ffa450edef68

2 years agoDe-duplicate log message tags.
Graham Leggett [Tue, 25 Apr 2023 18:53:08 +0000 (18:53 +0000)] 
De-duplicate log message tags.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909419 13f79535-47bb-0310-9956-ffa450edef68

2 years agoApply log next numbers.
Graham Leggett [Tue, 25 Apr 2023 18:49:50 +0000 (18:49 +0000)] 
Apply log next numbers.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909418 13f79535-47bb-0310-9956-ffa450edef68

2 years agoThe apr_jose API requires apr-util 1.7+.
Graham Leggett [Tue, 25 Apr 2023 18:38:58 +0000 (18:38 +0000)] 
The apr_jose API requires apr-util 1.7+.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909416 13f79535-47bb-0310-9956-ffa450edef68

2 years agoRegenerate docs.
Graham Leggett [Tue, 25 Apr 2023 17:52:58 +0000 (17:52 +0000)] 
Regenerate docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909412 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) mod_autht_jwt: New module to handle RFC 7519 JWT tokens within
Graham Leggett [Tue, 25 Apr 2023 17:52:18 +0000 (17:52 +0000)] 
  *) mod_autht_jwt: New module to handle RFC 7519 JWT tokens within
     bearer tokens, both as part of the aaa framework, and as a way to
     generate tokens and pass them to backend servers and services.

  *) mod_auth_bearer: New module to handle RFC 6750 Bearer tokens, using
     the token_checker hook.

  *) mod_autht_core: New module to handle provider aliases for token
     authentication.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909411 13f79535-47bb-0310-9956-ffa450edef68

2 years agocore: Add the token_checker hook, that allows authentication to take
Graham Leggett [Tue, 25 Apr 2023 17:35:08 +0000 (17:35 +0000)] 
core: Add the token_checker hook, that allows authentication to take
place using mechanisms other than username/password, such as bearer
tokens.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909409 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* Rephrase comment [skip ci]
Ruediger Pluem [Tue, 25 Apr 2023 12:04:09 +0000 (12:04 +0000)] 
* Rephrase comment [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909402 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* Clear the dns_pool before to avoid a memory leak in case we did the lookup
Ruediger Pluem [Tue, 25 Apr 2023 11:57:22 +0000 (11:57 +0000)] 
* Clear the dns_pool before to avoid a memory leak in case we did the lookup
  again.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909401 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* For retriggering a DNS lookup worker->cp->addr should be set to NULL and thus
Ruediger Pluem [Tue, 25 Apr 2023 11:52:17 +0000 (11:52 +0000)] 
* For retriggering a DNS lookup worker->cp->addr should be set to NULL and thus
  we need to avoid a race that worker->cp->addr switches to NULL after we
  checked it to be non NULL but before we assign it to conn->addr in an else
  tree which would leave conn->addr to NULL and likely cause a segfault later.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909400 13f79535-47bb-0310-9956-ffa450edef68

2 years agoRebuild docs.
Graham Leggett [Tue, 25 Apr 2023 08:43:04 +0000 (08:43 +0000)] 
Rebuild docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909395 13f79535-47bb-0310-9956-ffa450edef68

2 years agoci: Upgrade to latest apr-1.7.4.
Yann Ylavic [Sun, 23 Apr 2023 20:53:20 +0000 (20:53 +0000)] 
ci: Upgrade to latest apr-1.7.4.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909369 13f79535-47bb-0310-9956-ffa450edef68

2 years agoFollow up to r1909356: c89/style fix.
Yann Ylavic [Sun, 23 Apr 2023 20:44:21 +0000 (20:44 +0000)] 
Follow up to r1909356: c89/style fix.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909368 13f79535-47bb-0310-9956-ffa450edef68

2 years agocore: Restore original regex value when nesting Location,
Graham Leggett [Sat, 22 Apr 2023 18:10:30 +0000 (18:10 +0000)] 
core: Restore original regex value when nesting Location,
Directory and File directives.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909356 13f79535-47bb-0310-9956-ffa450edef68

2 years agoUpdate ci docs for move to GHA. [skip ci]
Joe Orton [Fri, 21 Apr 2023 14:31:30 +0000 (14:31 +0000)] 
Update ci docs for move to GHA. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909327 13f79535-47bb-0310-9956-ffa450edef68

2 years agoCI tests are failing (since r1909135), set a lower timeout since
Joe Orton [Wed, 19 Apr 2023 13:58:53 +0000 (13:58 +0000)] 
CI tests are failing (since r1909135), set a lower timeout since
the default is a rather extreme 6hrs. Worst cases seem to be
around 10 minutes currently. [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909242 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* Add server directory to include path as mod_rewrite requires test_char.h.
Ruediger Pluem [Wed, 19 Apr 2023 10:39:19 +0000 (10:39 +0000)] 
* Add server directory to include path as mod_rewrite requires test_char.h.

PR: 66571
Submitted by: Valeria Petrov <valeria.petrov@spinetix.com>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909241 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc rebuild.
Lucien Gentis [Tue, 18 Apr 2023 11:30:11 +0000 (11:30 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909218 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc XML file update.
Lucien Gentis [Tue, 18 Apr 2023 11:29:05 +0000 (11:29 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909217 13f79535-47bb-0310-9956-ffa450edef68

2 years ago *) cmake support
Stefan Eissing [Tue, 18 Apr 2023 08:55:44 +0000 (08:55 +0000)] 
  *) cmake support
     PR #356 from github to fix linking libcurl used by mod_md
     [@tumatanquang at github]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909215 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc rebuild.
Lucien Gentis [Sat, 15 Apr 2023 14:25:18 +0000 (14:25 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909157 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc XML files updates.
Lucien Gentis [Sat, 15 Apr 2023 14:24:11 +0000 (14:24 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909156 13f79535-47bb-0310-9956-ffa450edef68

2 years agomod_alias: When an alias is declared inside a Location, make sure
Graham Leggett [Fri, 14 Apr 2023 14:07:49 +0000 (14:07 +0000)] 
mod_alias: When an alias is declared inside a Location, make sure
the balance of the URL is preserved to match the alias declared
outside a location. Fixes an error where all requests are mapped
to the root of the location.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909137 13f79535-47bb-0310-9956-ffa450edef68

2 years agoInclude header file for the explicit regex.
Graham Leggett [Fri, 14 Apr 2023 14:03:03 +0000 (14:03 +0000)] 
Include header file for the explicit regex.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909136 13f79535-47bb-0310-9956-ffa450edef68

2 years agocore: Be explicit if an enclosing directive contains a path or a
Graham Leggett [Fri, 14 Apr 2023 14:02:11 +0000 (14:02 +0000)] 
core: Be explicit if an enclosing directive contains a path or a
regex.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909135 13f79535-47bb-0310-9956-ffa450edef68

2 years agojust request_uri
Eric Covener [Wed, 12 Apr 2023 11:56:23 +0000 (11:56 +0000)] 
just request_uri

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909084 13f79535-47bb-0310-9956-ffa450edef68

2 years agoxforms
Eric Covener [Tue, 11 Apr 2023 21:37:10 +0000 (21:37 +0000)] 
xforms

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909074 13f79535-47bb-0310-9956-ffa450edef68

2 years agoPR66563: escaping of url releated server vars
Eric Covener [Tue, 11 Apr 2023 21:36:55 +0000 (21:36 +0000)] 
PR66563: escaping of url releated server vars

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909073 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* Silence 'may be used uninitialized' warning
Ruediger Pluem [Tue, 11 Apr 2023 13:31:27 +0000 (13:31 +0000)] 
* Silence 'may be used uninitialized' warning

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909070 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* Xforms [skip ci]
Ruediger Pluem [Tue, 11 Apr 2023 12:05:00 +0000 (12:05 +0000)] 
* Xforms [skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909068 13f79535-47bb-0310-9956-ffa450edef68

2 years ago* Clarify performance topic
Ruediger Pluem [Tue, 11 Apr 2023 12:04:01 +0000 (12:04 +0000)] 
* Clarify performance topic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909067 13f79535-47bb-0310-9956-ffa450edef68

2 years agofr doc rebuild.
Lucien Gentis [Sat, 8 Apr 2023 13:05:39 +0000 (13:05 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909024 13f79535-47bb-0310-9956-ffa450edef68