]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
2 years agoDocument hcmethod enhancement to allow HTTP/1.1 comms
Jim Jagielski [Sun, 28 Aug 2022 20:07:35 +0000 (20:07 +0000)] 
Document hcmethod enhancement to allow HTTP/1.1 comms

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

2 years agoAllow for HTTP/1.1 or HTTP/1.0 protocol health checks
Jim Jagielski [Sun, 28 Aug 2022 18:46:21 +0000 (18:46 +0000)] 
Allow for HTTP/1.1 or HTTP/1.0 protocol health checks

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

2 years agofr doc rebuild.
Lucien Gentis [Sat, 27 Aug 2022 14:11:38 +0000 (14:11 +0000)] 
fr doc rebuild.

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

2 years agofr doc XML files updates.
Lucien Gentis [Sat, 27 Aug 2022 14:10:31 +0000 (14:10 +0000)] 
fr doc XML files updates.

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

2 years ago* Use apr_size_t instead of int to harden against overflows.
Ruediger Pluem [Thu, 25 Aug 2022 15:57:59 +0000 (15:57 +0000)] 
* Use apr_size_t instead of int to harden against overflows.

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

2 years agomod_md v2.4.19 from github sync
Stefan Eissing [Thu, 25 Aug 2022 14:00:13 +0000 (14:00 +0000)] 
mod_md v2.4.19 from github sync

  *) mod_md: a new directive `MDStoreLocks` can be used on cluster
     setups with a shared file system for `MDStoreDir` to order
     activation of renewed certificates when several cluster nodes are
     restarted at the same time. Store locks are not enabled by default.

     Restored curl_easy cleanup behaviour from v2.4.14 and refactored
     the use of curl_multi for OCSP requests to work with that.
     Fixes <https://github.com/icing/mod_md/issues/293>.

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

2 years agoStole a new number.
Stefan Eissing [Thu, 25 Aug 2022 13:28:19 +0000 (13:28 +0000)] 
Stole a new number.

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

2 years agocore: Follow up to r1902728: ap_max_mem_free early setting.
Yann Ylavic [Thu, 18 Aug 2022 10:44:52 +0000 (10:44 +0000)] 
core: Follow up to r1902728: ap_max_mem_free early setting.

Set ap_max_mem_free at static initialization time so that the main thread,
created early from init_process(), has some (default) limits for its pool.

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

2 years agocore: Follow up to r1902728 and r1902909: Move comment where relevant.
Yann Ylavic [Thu, 18 Aug 2022 10:29:05 +0000 (10:29 +0000)] 
core: Follow up to r1902728 and r1902909: Move comment where relevant.

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

2 years ago* http2_get_num_workers is not deprecated.
Ruediger Pluem [Wed, 17 Aug 2022 08:00:36 +0000 (08:00 +0000)] 
* http2_get_num_workers is not deprecated.
  Hence move it out of the deprecation section

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

3 years ago *) mod_ssl: when a proxy connection had handled a request using SSL, an
Stefan Eissing [Mon, 1 Aug 2022 12:56:11 +0000 (12:56 +0000)] 
  *) mod_ssl: when a proxy connection had handled a request using SSL, an
     error was logged when "SSLProxyEngine" was only configured in the
     location/proxy section and not the overall server. The connection
     continued to work, the error log was in error. Fixed PR66190.

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

3 years agocore: Follow up to r1902728 and r1902906: simplify for APR-1.8+.
Yann Ylavic [Thu, 21 Jul 2022 11:21:30 +0000 (11:21 +0000)] 
core: Follow up to r1902728 and r1902906: simplify for APR-1.8+.

apr_threadattr_max_free_set() is now in APR-1.8.x.

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

3 years agocore: Follow up to r1902728: pools may have no allocator with APR_POOL_DEBUG.
Yann Ylavic [Thu, 21 Jul 2022 11:05:12 +0000 (11:05 +0000)] 
core: Follow up to r1902728: pools may have no allocator with APR_POOL_DEBUG.

With APR <= 1.7 and APR_POOL_DEBUG, thread's pools don't necessarily have an
allocator, so avoid apr_allocator_max_free_set(NULL) in ap_thread_create() and
ap_thread_main_create().

Also, always create an allocator in ap_thread_current_create().

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

3 years agoutil_cpre: Follow up to r1902731: Simplify thread pool allocation.
Yann Ylavic [Tue, 19 Jul 2022 16:18:03 +0000 (16:18 +0000)] 
util_cpre: Follow up to r1902731: Simplify thread pool allocation.

We don't need to over-allocate pool/heap buffers and handle the (used) size,
let apr_palloc() do this exact work for us.

That way we only need an AP_THREAD_LOCAL pool with no buffer tracking, simpler.

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

3 years agoutil: Follow up to r1902728 and r1902731: static/AP_THREAD_LOCAL order matters.
Yann Ylavic [Fri, 15 Jul 2022 11:49:30 +0000 (11:49 +0000)] 
util: Follow up to r1902728 and r1902731: static/AP_THREAD_LOCAL order matters.

gcc seems to want "static __thread"  instead of "__thread static"..

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

3 years agoutil_pcre: Restore nmatch < ncaps behaviour with PCRE1 (only).
Yann Ylavic [Fri, 15 Jul 2022 10:46:37 +0000 (10:46 +0000)] 
util_pcre: Restore nmatch < ncaps behaviour with PCRE1 (only).

When the requested nmatch is below the number of captures for the regex (i.e.
nmatch is zero if the user does not care about the captures), with PCRE1 we can
pass a smaller ovector to pcre_exec() (or even NULL) which allows for somes
optimizations (less or even no recursion) internally in pcre.

This might avoid crashes due to stack usage/exhaustion with pathological
patterns (see BZ 66119).

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

3 years agoutil_pcre: Add a thread local subpool cache for when stack does not suffice.
Yann Ylavic [Fri, 15 Jul 2022 10:36:24 +0000 (10:36 +0000)] 
util_pcre: Add a thread local subpool cache for when stack does not suffice.

When AP_HAS_THREAD_LOCAL is available, use a thread-local match_thread_state to
save per-thread data in a subpool of the thread's pool.

If private_malloc() gets out of the stack buffer and the current thread has a
pool (i.e. ap_thread_current() != NULL), it will apr_palloc()ate and return
memory from the subpool.

When the match is complete and the match_data are freed, the thread subpool is
cleared thus giving back the memory to the allocator, which itself will give
back the memory or recycle it depending on its max_free setting.

* util_pcre.c:
  Restore POSIX_MALLOC_THRESHOLDsince this is part of the user API.

* util_pcre.c(match_data_pt):
  Type not used (explicitely) anymore, axe.

* util_pcre.c(struct match_data_state):
  Put the stack buffer there to simplify code (the state is allocated on
  stack anyway).
  If APREG_USE_THREAD_LOCAL, add the apr_thread_t* and match_thread_state*
  fields that track the thread local data for the match.

* util_pcre.c(alloc_match_data, free_match):
  Renamed to setup_state() and cleanup_state(), simplified (no stack buffer
  parameters anymore).
  cleanup_state() now clears the thread local subpool if used during the match.
  setup_state() set state->thd to ap_thread_current(), thus NULL if it's not a
  suitable thread for using thread local data.

* util_pcre.c(private_malloc):
  Fix a possible buf_used overflow (size <= avail < APR_ALIGN_DEFAULT(size)).
  Create the thread local subpool (once per thread) and allocate from there
  when stack space is missing and state->thd != NULL, otherwise fall back to
  malloc() still.

* util_pcre.c(private_free):
  Do nothing for thread local subpool memory, will be freed in cleanup_state
  eventually.

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

3 years agocore: Apply ap_max_mem_free to created threads' pool allocator.
Yann Ylavic [Fri, 15 Jul 2022 09:24:01 +0000 (09:24 +0000)] 
core: Apply ap_max_mem_free to created threads' pool allocator.

Since APR does not set the threshold above which the allocator of the thread's
starts returning its memory to the system, so set ap_max_mem_free from
ap_thread_create(), ap_thread_main_create() and ap_thread_current_create().

* include/httpd.h:
  Provide our own ap_thread_create() in any case (but !APR_HAS_THREADS).
  Simplify #ifdef-ery.

* server/util.c(thread_start, ap_thread_main_create, ap_thread_current_create):
  Set ap_max_mem_free to the thread's pool allocator.
  Simplify #ifdef-ery.

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

3 years agoMake pytest error whitelist a bit more explicit
Rainer Jung [Mon, 11 Jul 2022 13:49:45 +0000 (13:49 +0000)] 
Make pytest error whitelist a bit more explicit

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

3 years agompm_winnt: Follow up to r1902636: another compilation error.
Yann Ylavic [Mon, 11 Jul 2022 00:26:12 +0000 (00:26 +0000)] 
mpm_winnt: Follow up to r1902636: another compilation error.

Same error, elsewhere.

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

3 years agompm_winnt: Fix compilation error.
Yann Ylavic [Sun, 10 Jul 2022 16:58:00 +0000 (16:58 +0000)] 
mpm_winnt: Fix compilation error.

server\mpm\winnt\child.c(1210,1): error C2440: 'initializing': cannot convert from 'worker_info' to 'worker_info *'

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

3 years agoFollow-up to r1902572: Remove now unused #include.
Ivan Zhakov [Fri, 8 Jul 2022 16:24:37 +0000 (16:24 +0000)] 
Follow-up to r1902572: Remove now unused #include.

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

3 years agoRewrite ap_regexec() without a thread-local storage context for allocations.
Ivan Zhakov [Fri, 8 Jul 2022 15:07:00 +0000 (15:07 +0000)] 
Rewrite ap_regexec() without a thread-local storage context for allocations.

Provide custom malloc() and free() implementations that use a stack buffer
for first N bytes and then fall back to an ordinary malloc/free().

The key properties of this approach are:

1) Allocations with PCRE2 happen the same way as they were happening
with PCRE1 in httpd 2.4.52 and earlier.

2) There are no malloc()/free() calls for typical cases where the
match data can be kept on stack.

3) The patch avoids a malloc() for the match_data structure itself,
because the match data is allocated with the provided custom malloc()
function.

4) Using custom allocation functions should ensure that PCRE is not
going to use malloc() for any auxiliary allocations, if they are
necessary.

5) There is no per-thread state.

References:
1) https://lists.apache.org/thread/l6m7dqjkk0yy3tooyd2so0rb20jmtpwd
2) https://lists.apache.org/thread/5k9y264whn4f1ll35tvl2164dz0wphvy

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

3 years agoUpdate to test with OpenSSL 3.0.5.
Joe Orton [Tue, 5 Jul 2022 11:53:43 +0000 (11:53 +0000)] 
Update to test with OpenSSL 3.0.5.

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

3 years agofr doc rebuild.
Lucien Gentis [Sat, 2 Jul 2022 14:10:15 +0000 (14:10 +0000)] 
fr doc rebuild.

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

3 years agofr doc XML file update.
Lucien Gentis [Sat, 2 Jul 2022 14:09:14 +0000 (14:09 +0000)] 
fr doc XML file update.

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

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