]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
3 years ago *) mod_http2: fixed trailer handling. Empty response bodies
Stefan Eissing [Sat, 2 Jul 2022 09:39:22 +0000 (09:39 +0000)] 
  *) mod_http2: fixed trailer handling. Empty response bodies
     prevented trailers from being sent to a client. See
     <https://github.com/icing/mod_h2/issues/233> for how
     this affected gRPC use.

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

3 years ago *) test/modules/http2: adding tests for response trailers with
Stefan Eissing [Sat, 2 Jul 2022 09:11:31 +0000 (09:11 +0000)] 
  *) test/modules/http2: adding tests for response trailers with
     or without a body. This reproduces a bug reported in
     <https://github.com/icing/mod_h2/issues/233>
     where trailers are not sent on an empty response
     body. This is used in gRPC.

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

3 years ago *) test: improved nghttp client output parsing.
Stefan Eissing [Sat, 2 Jul 2022 08:58:26 +0000 (08:58 +0000)] 
  *) test: improved nghttp client output parsing.

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

3 years agoTrigger ci (check APR revert r1902369).
Yann Ylavic [Thu, 30 Jun 2022 13:44:58 +0000 (13:44 +0000)] 
Trigger ci (check APR revert r1902369).

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

3 years agoAdd .vs to svn:ignore.
Ivan Zhakov [Thu, 30 Jun 2022 12:49:17 +0000 (12:49 +0000)] 
Add .vs to svn:ignore.

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

3 years ago* CMakeLists.txt: Use full path to gen_test_char.exe in CUSTOM_COMMAND.
Ivan Zhakov [Thu, 30 Jun 2022 12:37:44 +0000 (12:37 +0000)] 
* CMakeLists.txt: Use full path to gen_test_char.exe in CUSTOM_COMMAND.

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

3 years agobetter error message
Giovanni Bechis [Tue, 28 Jun 2022 16:49:43 +0000 (16:49 +0000)] 
better error message

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

3 years agocheck apr_sockaddr_info_get return value
Giovanni Bechis [Tue, 28 Jun 2022 13:06:55 +0000 (13:06 +0000)] 
check apr_sockaddr_info_get return value
bz #66136

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

3 years agocheck apr_sockaddr_info_get() return value
Giovanni Bechis [Tue, 28 Jun 2022 13:05:20 +0000 (13:05 +0000)] 
check apr_sockaddr_info_get() return value
bz #66135

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

3 years agocheck BN_bn2dec return value
Giovanni Bechis [Tue, 28 Jun 2022 07:52:23 +0000 (07:52 +0000)] 
check BN_bn2dec return value

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

3 years agoFix new typo in docs...
Rainer Jung [Tue, 21 Jun 2022 10:27:00 +0000 (10:27 +0000)] 
Fix new typo in docs...

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

3 years ago*) mod_heartmonitor: Document interaction between
Rainer Jung [Tue, 21 Jun 2022 10:19:26 +0000 (10:19 +0000)] 
*) mod_heartmonitor: Document interaction between
   HeartbeatStorage and HeartbeatMaxServers.

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

3 years agoFix numeric check for HeartbeatMaxServers.
Rainer Jung [Tue, 21 Jun 2022 10:10:29 +0000 (10:10 +0000)] 
Fix numeric check for HeartbeatMaxServers.

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

3 years ago*) mod_heartmonitor: Allow "HeartbeatMaxServers 0"
Rainer Jung [Mon, 20 Jun 2022 20:54:14 +0000 (20:54 +0000)] 
*) mod_heartmonitor: Allow "HeartbeatMaxServers 0"
   to use file based storage instead of slotmem.
   Needed after setting HeartbeatMaxServers default
   to the documented value 10 in 2.4.54.
   [Jérôme Billira

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

3 years ago *) mod_http2: remove the workers pool from APR_POOL_DEBUG
Stefan Eissing [Mon, 20 Jun 2022 11:25:42 +0000 (11:25 +0000)] 
  *) mod_http2: remove the workers pool from APR_POOL_DEBUG
     logging now that h2_workers is opaque.

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

3 years ago *) mod_http2: init local var since write in loop may be buypassed.
Stefan Eissing [Mon, 20 Jun 2022 07:21:58 +0000 (07:21 +0000)] 
  *) mod_http2: init local var since write in loop may be buypassed.

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

3 years ago* Use s directly like in the other ap_log_error calls
Ruediger Pluem [Mon, 20 Jun 2022 07:14:05 +0000 (07:14 +0000)] 
* Use s directly like in the other ap_log_error calls

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

3 years ago* workers is not always initialized here
Ruediger Pluem [Mon, 20 Jun 2022 07:11:09 +0000 (07:11 +0000)] 
* workers is not always initialized here

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

3 years ago *) mod_http2: new implementation of h2 worker pool.
Stefan Eissing [Fri, 17 Jun 2022 09:24:57 +0000 (09:24 +0000)] 
  *) mod_http2: new implementation of h2 worker pool.
     - O(1) cost at registration of connection processing producers
     - no limit on registered producers
     - join of ongoing work on unregister
     - callbacks to unlink dependencies into other h2 code
     - memory cleanup on workers deactivation (on idle timeouts)
     - idle_limit as apr_time_t instead of seconds

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

3 years ago *) mod_http2: fix an edge case in h2_fifo_remove,
Stefan Eissing [Fri, 17 Jun 2022 09:06:35 +0000 (09:06 +0000)] 
  *) mod_http2: fix an edge case in h2_fifo_remove,
     improve c1 connection flushing, fix an UAF in
     recycling transit pools.

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

3 years agocore: log_tid support on FreeBSD.
Yann Ylavic [Thu, 16 Jun 2022 14:25:05 +0000 (14:25 +0000)] 
core: log_tid support on FreeBSD.

Use pthread_getthreadid_np() when available.

BZ: 65835
Submitted by: David CARLIER <devnexen gmail.com>

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

3 years agompm_prefork: Do not access the POD in ONE_PROCESS mode.
Yann Ylavic [Thu, 16 Jun 2022 13:54:39 +0000 (13:54 +0000)] 
mpm_prefork: Do not access the POD in ONE_PROCESS mode.

There is no POD created in ONE_PROCESS mode, so avoid crashing in child_main()
and clean_child_exit().

While at it, remove a dead code path in prefork_run() which is never reached
since the one_process path already returns/exits above.

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

3 years agoRemove an empty line to synch with 2.4.x
Christophe Jaillet [Sun, 12 Jun 2022 08:43:22 +0000 (08:43 +0000)] 
Remove an empty line to synch with 2.4.x

[skip ci]

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

3 years ago *) test/modules/tls: remove some duplicate parameters for
Stefan Eissing [Fri, 10 Jun 2022 09:06:26 +0000 (09:06 +0000)] 
  *) test/modules/tls: remove some duplicate parameters for
     test_15_proxy_tls_h2_vars.

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

3 years agomod_ssl: Missing bit from r1901470 to handle OpenSSL-3+ FIPS.
Yann Ylavic [Thu, 9 Jun 2022 09:53:12 +0000 (09:53 +0000)] 
mod_ssl: Missing bit from r1901470 to handle OpenSSL-3+ FIPS.

OPENSSL_FIPS is no longer defined with openssl-3, it always HAVE_FIPS.

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

3 years agofixed in 1.7 SVN but not released
Eric Covener [Sat, 4 Jun 2022 20:21:06 +0000 (20:21 +0000)] 
fixed in 1.7 SVN but not released

just in case we reroll.

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

3 years ago-qinitauto=FE conflicts with -qcheck=unset
Eric Covener [Sat, 4 Jun 2022 15:37:33 +0000 (15:37 +0000)] 
-qinitauto=FE conflicts with -qcheck=unset

maintainer mode only

causes a warning for every compiler invocation.  If automatics are initialized
by -qinitauto, use before being assigned cannot be detected with -qcheck=unset
(part of all)

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

3 years agofr doc rebuild.
Lucien Gentis [Sat, 4 Jun 2022 15:26:37 +0000 (15:26 +0000)] 
fr doc rebuild.

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

3 years agofr doc XML files updates.
Lucien Gentis [Sat, 4 Jun 2022 15:25:39 +0000 (15:25 +0000)] 
fr doc XML files updates.

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

3 years agoforce to 0 on 1.6 on Windows
Eric Covener [Sat, 4 Jun 2022 12:06:23 +0000 (12:06 +0000)] 
force to 0 on 1.6 on Windows

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

3 years agotypo [skip ci]
Giovanni Bechis [Fri, 3 Jun 2022 14:55:48 +0000 (14:55 +0000)] 
typo [skip ci]

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

3 years agokick ci
Eric Covener [Thu, 2 Jun 2022 21:39:04 +0000 (21:39 +0000)] 
kick ci

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

3 years agoTrigger ci.
Yann Ylavic [Thu, 2 Jun 2022 12:31:41 +0000 (12:31 +0000)] 
Trigger ci.

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

3 years agoSync CHANGES [skip ci]
Yann Ylavic [Thu, 2 Jun 2022 09:58:42 +0000 (09:58 +0000)] 
Sync CHANGES [skip ci]

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

3 years ago *) mod_md: update version after release on github
Stefan Eissing [Thu, 2 Jun 2022 09:40:26 +0000 (09:40 +0000)] 
  *) mod_md: update version after release on github
[skip ci]

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

3 years agoupdate of mod_md change description. [skip ci]
Stefan Eissing [Thu, 2 Jun 2022 09:18:17 +0000 (09:18 +0000)] 
update of mod_md change description. [skip ci]

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

3 years agomod_proxy_ajp: T-E has precedence over C-L.
Yann Ylavic [Wed, 1 Jun 2022 13:46:54 +0000 (13:46 +0000)] 
mod_proxy_ajp: T-E has precedence over C-L.

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

3 years agoReserve an APLOGNO [skip ci]
Yann Ylavic [Wed, 1 Jun 2022 13:45:35 +0000 (13:45 +0000)] 
Reserve an APLOGNO [skip ci]

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

3 years agoSync docs again [skip ci]
Yann Ylavic [Wed, 1 Jun 2022 13:10:57 +0000 (13:10 +0000)] 
Sync docs again [skip ci]

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

3 years agoadd LWP::Protocol::AnyEvent::http
Eric Covener [Wed, 1 Jun 2022 12:57:22 +0000 (12:57 +0000)] 
add  LWP::Protocol::AnyEvent::http

it can be used to workaround a bug with hitting mod_echo_post

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

3 years agomention limit
Eric Covener [Wed, 1 Jun 2022 12:53:03 +0000 (12:53 +0000)] 
mention limit

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

3 years agolimit mod_sed memory use
Eric Covener [Wed, 1 Jun 2022 12:40:09 +0000 (12:40 +0000)] 
limit mod_sed memory use

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

3 years agomod_isapi: use consistent filename
Eric Covener [Wed, 1 Jun 2022 12:37:44 +0000 (12:37 +0000)] 
mod_isapi: use consistent filename

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

3 years agouse filters consistently
Eric Covener [Wed, 1 Jun 2022 12:36:13 +0000 (12:36 +0000)] 
use filters consistently

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

3 years agohandle large writes in ap_rputs
Eric Covener [Wed, 1 Jun 2022 12:33:53 +0000 (12:33 +0000)] 
handle large writes in ap_rputs

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

3 years agouse a liberal default limit for LimitRequestBody of 1GB
Eric Covener [Wed, 1 Jun 2022 12:30:46 +0000 (12:30 +0000)] 
use a liberal default limit for LimitRequestBody of 1GB

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

3 years agocast first
Eric Covener [Wed, 1 Jun 2022 12:29:46 +0000 (12:29 +0000)] 
cast first

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

3 years agofix types
Eric Covener [Wed, 1 Jun 2022 12:20:56 +0000 (12:20 +0000)] 
fix types

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

3 years agoSync docs [skip ci]
Yann Ylavic [Wed, 1 Jun 2022 11:43:16 +0000 (11:43 +0000)] 
Sync docs [skip ci]

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

3 years agoNote about Absolute URL w.r.t. query-string in mod_rewrite [skip ci]
Yann Ylavic [Wed, 1 Jun 2022 11:05:37 +0000 (11:05 +0000)] 
Note about Absolute URL w.r.t. query-string in mod_rewrite [skip ci]

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

3 years agomod_proxy: Follow up to r1901485: Don't shadow upper 'val' variable.
Yann Ylavic [Wed, 1 Jun 2022 10:23:31 +0000 (10:23 +0000)] 
mod_proxy: Follow up to r1901485: Don't shadow upper 'val' variable.

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

3 years agomod_proxy: Let fixup hooks know about the Host header (and eventually overwrite it).
Yann Ylavic [Wed, 1 Jun 2022 09:56:43 +0000 (09:56 +0000)] 
mod_proxy: Let fixup hooks know about the Host header (and eventually overwrite it).

If proxy_run_fixups() sets a Host header there will be two ones sent to the
origin server.

Instead, let the hooks know about the Host by setting it in the r->headers_in
passed to proxy_run_fixups(), and use the actual value afterwards.
Note: if proxy_run_fixups() unsets the Host we'll keep ours.

Suggested by: rpluem

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

3 years agomod_ssl: SSLFIPS compatible with OpenSSL 3.0. PR 66063.
Yann Ylavic [Tue, 31 May 2022 23:01:24 +0000 (23:01 +0000)] 
mod_ssl: SSLFIPS compatible with OpenSSL 3.0.  PR 66063.

* modules/ssl/ssl_private.h():
  #define modssl_fips_is_enabled() and modssl_fips_enable() to wrap the
  native OpenSSL FIPS functions available on OPENSSL_VERSION_NUMBER.

* modules/ssl/ssl_engine_init.c(ssl_init_Module, modssl_fips_cleanup):
  Use the new wrappers instead of the OPENSSL_VERSION_NUMBER < 3.0 functions.

Submitted by: Petr Sumbera <petr.sumbera oracle.com>, ylavic

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

3 years agomod_proxy: ap_proxy_create_hdrbrgd() to clear hop-by-hop first and fixup last.
Yann Ylavic [Tue, 31 May 2022 15:26:12 +0000 (15:26 +0000)] 
mod_proxy: ap_proxy_create_hdrbrgd() to clear hop-by-hop first and fixup last.

So that ap_proxy_clear_connection() runs on the original headers only and
proxy_run_fixups() on the final ones.

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

3 years agomod_proxy: Align ap_proxy_create_hdrbrgd() with 2.4.x's.
Yann Ylavic [Tue, 31 May 2022 15:06:13 +0000 (15:06 +0000)] 
mod_proxy: Align ap_proxy_create_hdrbrgd() with 2.4.x's.

In 2.4.x, the copy of r->headers_in is left in r->headers_in for the whole
function, while the original r->headers_in are restored at the end. This
is simpler and avoids the r->headers_in <=> saved_headers_in danse when
calling a function that modifies r->headers_in in place.

Align with 2.4.x, no functional change.

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

3 years agomod_proxy_http: Follow up to r1901420: consistent 100-continue checks.
Yann Ylavic [Tue, 31 May 2022 11:05:41 +0000 (11:05 +0000)] 
mod_proxy_http: Follow up to r1901420: consistent 100-continue checks.

Let proxy_http_handler() tell ap_proxy_create_hdrbrgd() whether to add or
preserve Expect header or not, through the "proxy-100-continue" note.

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

3 years agomod_proxy_http: Avoid 417 responses for non forwardable 100-continue. PR 65666.
Yann Ylavic [Mon, 30 May 2022 15:54:34 +0000 (15:54 +0000)] 
mod_proxy_http: Avoid 417 responses for non forwardable 100-continue. PR 65666.

Stop returning 417 when mod_proxy has to forward an HTTP/1.1 request with both
"Expect: 100-continue" and "force-proxy-request-1.0" set, mod_proxy can instead
handle the 100-continue by itself before forwarding the request, like in the
"Proxy100Continue Off" case.

Note that this does not change the behaviour of httpd receiving an HTTP/1.0
request with an Expect header, ap_check_request_header() will still correctly
return 417 in this case.

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

3 years agoMerge of PR 318:
Stefan Eissing [Thu, 26 May 2022 08:43:13 +0000 (08:43 +0000)] 
Merge of PR 318:

  *) core: the conf/mime.types has been updated in conformance with RFC 9239:
     - .js moved from 'application/javascript' to 'text/javascript'
     - .mjs was added as 'text/javascript'
     [Mathias Bynens <@mathiasbynens> via PR 318]

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

3 years ago *) mod_md: resurrect r1898962 lost by a change merge.
Stefan Eissing [Thu, 26 May 2022 08:10:37 +0000 (08:10 +0000)] 
  *) mod_md: resurrect r1898962 lost by a change merge.
     Thanks to Christophe for catching this.

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

3 years ago *) mod_md: a logic bug in sending long OCSP HTTP request bodies was fixed.
Stefan Eissing [Wed, 25 May 2022 11:32:52 +0000 (11:32 +0000)] 
  *) mod_md: a logic bug in sending long OCSP HTTP request bodies was fixed.
     This did not happen in normal use as request sizes for OSCP queries
     never exceed that length.

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

3 years agofr doc rebuild.
Lucien Gentis [Sat, 21 May 2022 15:06:23 +0000 (15:06 +0000)] 
fr doc rebuild.

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

3 years agofr doc XML files updates.
Lucien Gentis [Sat, 21 May 2022 15:05:05 +0000 (15:05 +0000)] 
fr doc XML files updates.

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

3 years ago* Port r546128 to mod_proxy_connect to ensure that core_pre_connection does not
Ruediger Pluem [Fri, 20 May 2022 15:15:24 +0000 (15:15 +0000)] 
* Port r546128 to mod_proxy_connect to ensure that core_pre_connection does not
  succeed in resetting the timeout of our socket to base_server->timeout.

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

3 years agoescaping doesn't actually happen by default
Eric Covener [Thu, 19 May 2022 18:43:39 +0000 (18:43 +0000)] 
escaping doesn't actually happen by default

otherwise, we would not have [B] and two internal escape functions.

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

3 years agoCredits [skip ci]
Yann Ylavic [Wed, 18 May 2022 12:47:06 +0000 (12:47 +0000)] 
Credits [skip ci]

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

3 years agoSync CHANGES entries [skip ci]
Yann Ylavic [Wed, 18 May 2022 12:44:41 +0000 (12:44 +0000)] 
Sync CHANGES entries [skip ci]

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

3 years agoFollow up to r1899858: CHANGES entry.
Yann Ylavic [Tue, 17 May 2022 15:16:43 +0000 (15:16 +0000)] 
Follow up to r1899858: CHANGES entry.

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

3 years ago *) mod_md: handle case in status print when no url is present
Stefan Eissing [Sat, 14 May 2022 13:49:05 +0000 (13:49 +0000)] 
  *) mod_md: handle case in status print when no url is present

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

3 years ago * test: upgrade rustls-ffi version to 0.9.0 which
Stefan Eissing [Sat, 14 May 2022 09:09:01 +0000 (09:09 +0000)] 
  * test: upgrade rustls-ffi version to 0.9.0 which
    gets rid of the dependency on cbindgen.

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

3 years ago *) mod_md: the `MDCertificateAuthority` directive can take more than one URL/name of
Stefan Eissing [Fri, 13 May 2022 11:03:51 +0000 (11:03 +0000)] 
  *) mod_md: the `MDCertificateAuthority` directive can take more than one URL/name of
     an ACME CA. This gives a failover for renewals when several consecutive attempts
     to get a certificate failed.
     A new directive was added: `MDRetryDelay` sets the delay of retries.
     A new directive was added: `MDRetryFailover` sets the number of errored
     attempts before an alternate CA is selected for certificate renewals.

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

3 years agoxforms
Jim Jagielski [Mon, 9 May 2022 17:51:48 +0000 (17:51 +0000)] 
xforms

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

3 years agoFix some typos
Christophe Jaillet [Sun, 8 May 2022 13:01:01 +0000 (13:01 +0000)] 
Fix some typos

[skip ci]

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

3 years agoFix a typo
Christophe Jaillet [Sun, 8 May 2022 12:59:38 +0000 (12:59 +0000)] 
Fix a typo

[skip ci]

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

3 years agoFix a typo
Christophe Jaillet [Sun, 8 May 2022 12:56:22 +0000 (12:56 +0000)] 
Fix a typo

[skip ci]

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

3 years agoFix some typo
Christophe Jaillet [Sun, 8 May 2022 12:31:31 +0000 (12:31 +0000)] 
Fix some typo

[skip ci]

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

3 years agoFix a typo (s/virtal/virtual) and add a missing hyper-link.
Christophe Jaillet [Sun, 8 May 2022 12:26:09 +0000 (12:26 +0000)] 
Fix a typo (s/virtal/virtual) and add a missing hyper-link.

[skip ci]

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

3 years agoAdd missing 'break'
Christophe Jaillet [Sun, 8 May 2022 06:16:58 +0000 (06:16 +0000)] 
Add missing 'break'

[skip ci]

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

3 years agofr doc rebuild.
Lucien Gentis [Sat, 7 May 2022 14:37:36 +0000 (14:37 +0000)] 
fr doc rebuild.

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

3 years agofr doc XML files updates.
Lucien Gentis [Sat, 7 May 2022 14:36:34 +0000 (14:36 +0000)] 
fr doc XML files updates.

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

3 years ago *) mod_md: fixed a bug leading to failed transfers for OCSP
Stefan Eissing [Fri, 6 May 2022 13:09:46 +0000 (13:09 +0000)] 
  *) mod_md:  fixed a bug leading to failed transfers for OCSP
     stapling information when more than 6 certificates needed
     updates in the same run.

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

3 years agor1900362 followup: clang -Wexpansion-to-defined
Eric Covener [Thu, 5 May 2022 02:03:27 +0000 (02:03 +0000)] 
r1900362 followup: clang -Wexpansion-to-defined

ab.c:2056:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if USE_SIGMASK

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

3 years agoLength computed by count_string() are accumulated in an apr_size_t, so be more consis...
Christophe Jaillet [Wed, 4 May 2022 20:28:32 +0000 (20:28 +0000)] 
Length computed by count_string() are accumulated in an apr_size_t, so be more consistent and use this data type also in this function.

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

3 years agodav_get_liveprop_info() returns a long not an int.
Christophe Jaillet [Wed, 4 May 2022 18:27:29 +0000 (18:27 +0000)] 
dav_get_liveprop_info() returns a long not an int.

Update the type of global_ns accordingly and update the format specifier when this variable is used in printf like functions.

This also aligns code with dav_core_insert_prop() in modules/dav/main/std_liveprop.c

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

3 years agohttpd 2.4.x and above require at least APR 1.3, so this is always the case.
Christophe Jaillet [Wed, 4 May 2022 17:49:03 +0000 (17:49 +0000)] 
httpd 2.4.x and above require at least APR 1.3, so this is always the case.
Simplify the wording in the doc.

[skip ci]

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

3 years agoUpdate to testing against OpenSSL 3.0.3.
Joe Orton [Wed, 4 May 2022 08:47:05 +0000 (08:47 +0000)] 
Update to testing against OpenSSL 3.0.3.

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

3 years agohttpd 2.4.x and above require at least APR 1.3, so this is always the case.
Christophe Jaillet [Tue, 3 May 2022 19:56:29 +0000 (19:56 +0000)] 
httpd 2.4.x and above require at least APR 1.3, so this is always the case.
Simplify the wording in the doc.

[skip ci]

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

3 years agofr doc rebuild.
Lucien Gentis [Sat, 30 Apr 2022 15:46:49 +0000 (15:46 +0000)] 
fr doc rebuild.

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

3 years agofr doc XML file updates.
Lucien Gentis [Sat, 30 Apr 2022 15:45:49 +0000 (15:45 +0000)] 
fr doc XML file updates.

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

3 years agoab: Add the -W option to use worker threads.
Yann Ylavic [Thu, 28 Apr 2022 13:57:15 +0000 (13:57 +0000)] 
ab: Add the -W option to use worker threads.

This allows for multiple CPUs to handle the load, the number of requests and
concurrency level asked are distributed over the configured number of workers,
allowing for as much parallelism.

On unixes (only for now), -W0 will use all the CPUs available on the system.

To avoid synchronization during runtime, the stats and requests times are
gathered per worker and consolidated at the end of the run before being
printed.

Connection closes, keepalives and errors are now handled in a single place,
namely cleanup_connection(), which takes care of the good/bad state of each
request based on the response fully received or not.

When multiple workers are running, SIGINT is handled by the main thread only
and masked in workers, workers are asked to stop and woken up if waiting in
poll().

A single worker is started first to determine the connectivity with the peer,
if that fails (10 tries) ab will stop early still without starting the other
workers, otherwise the first worker will signal the main thread to start the
others.

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

3 years ago *) mod_http2: remove unused and insecure code. Fixes PR66037.
Stefan Eissing [Thu, 28 Apr 2022 10:41:48 +0000 (10:41 +0000)] 
  *) mod_http2: remove unused and insecure code. Fixes PR66037.
     Thanks to Ronald Crane (Zippenhop LLC) for reporting this.

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

3 years agoThe only caller of hm_processmsg() passes an apr_size_t for the last parameter, so...
Christophe Jaillet [Wed, 27 Apr 2022 20:36:14 +0000 (20:36 +0000)] 
The only caller of hm_processmsg() passes an apr_size_t for the last parameter, so be consistent and update the definition accordingly.

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

3 years agoHarden mod_session and avoid overflow in case of indecently large session
Christophe Jaillet [Wed, 27 Apr 2022 20:08:50 +0000 (20:08 +0000)] 
Harden mod_session and avoid overflow in case of indecently large session

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

3 years ago * removing duplicatae changes entry
Stefan Eissing [Wed, 27 Apr 2022 12:07:18 +0000 (12:07 +0000)] 
 * removing duplicatae changes entry
[skip ci]

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

3 years ago *) mod_md: implement full auto status ("key: value" type status output).
Stefan Eissing [Wed, 27 Apr 2022 11:53:04 +0000 (11:53 +0000)] 
  *) mod_md: implement full auto status ("key: value" type status output).
     Especially not only status summary counts for certificates and
     OCSP stapling but also lists. Auto status format is similar to
     what was used for mod_proxy_balancer.

added change desription for code added in r1900313.

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

3 years ago *) mod_md: added support for managing certificates via a
Stefan Eissing [Wed, 27 Apr 2022 11:48:36 +0000 (11:48 +0000)] 
  *) mod_md: added support for managing certificates via a
     local tailscale demon for users of that secure networking.
     This gives trusted certificates for tailscale  assigned
     domain names in the *.ts.net space.

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

3 years ago* modules/ssl/ssl_engine_io.c:
Joe Orton [Wed, 27 Apr 2022 07:45:01 +0000 (07:45 +0000)] 
* modules/ssl/ssl_engine_io.c:
  Drop noop functions for BIO methods mod_ssl doesn't implement.
  OpenSSL handles missing BIO methods internally in BIO_xxxx() wrappers.
  Consistently log at TRACE4 unhandled _ctrl commands, but note
  these are not a "BUG" as in the previous log message.

PR: 66028
Github: closes #316

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

3 years ago* Use apr_size_t instead of int to avoid an overflow
Ruediger Pluem [Wed, 27 Apr 2022 06:43:11 +0000 (06:43 +0000)] 
* Use apr_size_t instead of int to avoid an overflow

PR: 66034

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

3 years ago* Avoid an overflow on large inputs
Ruediger Pluem [Wed, 27 Apr 2022 06:35:02 +0000 (06:35 +0000)] 
* Avoid an overflow on large inputs

PR: 66033

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

3 years agoab: Allow for TLSv1.3 when the SSL library supports it.
Yann Ylavic [Fri, 22 Apr 2022 13:04:51 +0000 (13:04 +0000)] 
ab: Allow for TLSv1.3 when the SSL library supports it.

When TLS1_3_VERSION is defined by the SSL library, bump the maximum TLS
protocol to that and use it for "-f ALL" or "-f TLSv1.3".

This mixes proposed patches from BZ 63594 and 64699.

BZ: 63594, 64699
Submitted by: abhilash <abhilash1232 gmail.com>
Submitted by: xiaolongx.jiang intel.com
Submitted & Reviewed by: ylavic

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

3 years agoab: apr_base64_encode already NUL-terminate the output.
Yann Ylavic [Fri, 22 Apr 2022 12:14:01 +0000 (12:14 +0000)] 
ab: apr_base64_encode already NUL-terminate the output.

And returns the length including the trailing \0, so setting it at that
length is off by +1.

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