]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
4 years agomod_proxy_http2: stop/wait the workers threads before their pool is killed.
Yann Ylavic [Sun, 6 Dec 2020 23:13:38 +0000 (23:13 +0000)] 
mod_proxy_http2: stop/wait the workers threads before their pool is killed.

There shouldn't be any worker thread active when pchild is destroyed (thus each
thread's pool), so register workers_pool_cleanup as a pre_cleanup of pchild.

This is to avoid races like the below stacktrace, where slot_run() threads
are still running when clean_child_exit() is called.

Thread 23 (Thread 0x7f4865b79800 (LWP 3740)):
#0  0x00007f4864dec449 in pthread_cond_destroy@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f4865020117 in run_cleanups (cref=<optimized out>) at memory/unix/apr_pools.c:2629
#2  pool_clear_debug (pool=pool@entry=0x558a5297e4a0, file_line=0x558a5237456b "event.c:757") at memory/unix/apr_pools.c:1830
#3  0x00007f486501ffee in pool_destroy_debug (pool=0x558a5297e4a0, file_line=<optimized out>) at memory/unix/apr_pools.c:1915
#4  0x00007f48650200f0 in pool_clear_debug (pool=pool@entry=0x558a52a41070, file_line=0x558a5237456b "event.c:757") at memory/unix/apr_pools.c:1827
#5  0x00007f486501ffee in pool_destroy_debug (pool=0x558a52a41070, file_line=<optimized out>) at memory/unix/apr_pools.c:1915
#6  0x00007f486502085c in apr_pool_destroy_debug (pool=<optimized out>, file_line=<optimized out>) at memory/unix/apr_pools.c:1957
#7  0x0000558a52326cfc in clean_child_exit (code=0) at event.c:757
#8  0x0000558a52327969 in child_main (child_num_arg=child_num_arg@entry=1, child_bucket=child_bucket@entry=0) at event.c:2926
#9  0x0000558a52327ce5 in make_child (s=0x558a52c9f840, slot=slot@entry=1, bucket=0) at event.c:2992
#10 0x0000558a52327d4c in startup_children (number_to_start=2, number_to_start@entry=3) at event.c:3015
#11 0x0000558a523289ac in event_run (_pconf=<optimized out>, plog=0x558a5273ce00, s=0x558a52c9f840) at event.c:3374
#12 0x0000558a5233e91e in ap_run_mpm (pconf=0x558a5270cbe0, plog=0x558a5273ce00, s=0x558a52c9f840) at mpm_common.c:100
#13 0x0000558a5231b763 in main (argc=<optimized out>, argv=<optimized out>) at main.c:844

Thread 2 (Thread 0x7f4840b70700 (LWP 3836)):
#0  0x00007f4864dec9f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f486501f65d in apr_thread_cond_wait (cond=<optimized out>, mutex=<optimized out>) at locks/unix/thread_cond.c:68
#2  0x00007f484e14ae4a in get_next (slot=0x558a528d5fe0) at h2_workers.c:209
#3  slot_run (thread=0x558a52828b30, wctx=0x558a528d5fe0) at h2_workers.c:228
#4  0x00007f4864de66db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f4864b0f88f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f4841b72700 (LWP 3834)):
#0  0x00007f4864a2ce97 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4864a2e801 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f4865020865 in apr_pool_destroy_debug (pool=<optimized out>, file_line=<optimized out>) at memory/unix/apr_pools.c:1955
#3  0x00007f486502b536 in apr_thread_exit (thd=thd@entry=0x558a52ba8980, retval=retval@entry=0) at threadproc/unix/thread.c:206
#4  0x00007f484e14aec6 in slot_run (thread=0x558a52ba8980, wctx=0x558a528d6060) at h2_workers.c:248
#5  0x00007f4864de66db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f4864b0f88f in clone () from /lib/x86_64-linux-gnu/libc.so.6

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

4 years agomod_http2: Rename server_pool as pchild in h2_workers_create()
Yann Ylavic [Sun, 6 Dec 2020 22:46:42 +0000 (22:46 +0000)] 
mod_http2: Rename server_pool as pchild in h2_workers_create()

To clarify which parent pool the workers threads have.
And add a comment about workers_pool_cleanup()'s role and when it runs.

No functional change.

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

4 years agomod_http2: revert r1883675.
Yann Ylavic [Sun, 6 Dec 2020 22:35:08 +0000 (22:35 +0000)] 
mod_http2: revert r1883675.

The issue was caused by races in APR_POOL_DEBUG code.

Stopping the h2 workers threads as pre_cleanup of workers->pool is soon enough
since it's a child of pchild already.

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

4 years ago²main: -V to print the SHM mechanisms in use.
Yann Ylavic [Sat, 5 Dec 2020 23:05:45 +0000 (23:05 +0000)] 
²main: -V to print the SHM mechanisms in use.

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

4 years agoCosmetics (and one more ci pass, just in case).
Yann Ylavic [Sat, 5 Dec 2020 21:29:31 +0000 (21:29 +0000)] 
Cosmetics (and one more ci pass, just in case).

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

4 years agoAdd ASan (AddressSanitizer) build and tests to ci.
Yann Ylavic [Sat, 5 Dec 2020 19:11:22 +0000 (19:11 +0000)] 
Add ASan (AddressSanitizer) build and tests to ci.

Github: closes #152

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

4 years agofr doc rebuild.
Lucien Gentis [Sat, 5 Dec 2020 17:09:32 +0000 (17:09 +0000)] 
fr doc rebuild.

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

4 years agofr doc XML file update.
Lucien Gentis [Sat, 5 Dec 2020 17:08:34 +0000 (17:08 +0000)] 
fr doc XML file update.

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

4 years agoWhitespace change to force ci (third time's a charm?).
Yann Ylavic [Sat, 5 Dec 2020 10:26:41 +0000 (10:26 +0000)] 
Whitespace change to force ci (third time's a charm?).

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

4 years agoWhitespace change to force ci (again).
Yann Ylavic [Sat, 5 Dec 2020 10:08:54 +0000 (10:08 +0000)] 
Whitespace change to force ci (again).

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

4 years agoWhitespace change to force ci.
Yann Ylavic [Fri, 4 Dec 2020 19:04:55 +0000 (19:04 +0000)] 
Whitespace change to force ci.

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

4 years agoDocument mod_ssl client certificate handling w/SSLProxyMachineCertificate*.
Joe Orton [Fri, 4 Dec 2020 14:21:06 +0000 (14:21 +0000)] 
Document mod_ssl client certificate handling w/SSLProxyMachineCertificate*.
[skip ci]

PR: 63936

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

4 years agomod_proxy_fcgi: follow up to r1884068 and r1884069.
Yann Ylavic [Thu, 3 Dec 2020 16:10:08 +0000 (16:10 +0000)] 
mod_proxy_fcgi: follow up to r1884068 and r1884069.

No mixed Transfer-Encoding and Content-Length possible.

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

4 years agomod_proxy_fcgi: follow up to r1884068.
Yann Ylavic [Thu, 3 Dec 2020 16:00:13 +0000 (16:00 +0000)] 
mod_proxy_fcgi: follow up to r1884068.

Use the same heuristic as mod_proxy_http to determinine whether we need to
spool the request body.

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

4 years agomod_proxy_fcgi: Honor "SetEnv proxy-sendcl".
Yann Ylavic [Thu, 3 Dec 2020 14:21:47 +0000 (14:21 +0000)] 
mod_proxy_fcgi: Honor "SetEnv proxy-sendcl".

When proxy-sendcl is set, spool the request body to memory/disk so that a
Content-Length can be computed and provided to the backend.

If not set, still try to prefetch the body in non blocking mode, which allows
to handle small bodies (< 16K) the same way by default.

PR 57087.

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

4 years agomod_proxy: provide prefetching and spooling mechanisms to all proxy modules.
Yann Ylavic [Thu, 3 Dec 2020 14:06:17 +0000 (14:06 +0000)] 
mod_proxy: provide prefetching and spooling mechanisms to all proxy modules.

Export ap_proxy_prefetch_input(), ap_proxy_spool_input() and
ap_proxy_read_input() from mod_proxy_http to mod_proxy.h/proxy_util.c so
that they are usable by all proxy modules.

mod_proxy_fcgi will use them in a following commit.

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

4 years ago* modules/metadata/mod_unique_id.c: Use base64url encoding for
Joe Orton [Mon, 30 Nov 2020 09:22:22 +0000 (09:22 +0000)] 
* modules/metadata/mod_unique_id.c: Use base64url encoding for
  uuencoder table.

PR: 57044
Submitted by: Michael Kaufmann <apache-bugzilla michael-kaufmann.ch>

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

4 years agoap_pbase64decode(): save double NUL byte allocation and assignment.
Yann Ylavic [Fri, 27 Nov 2020 17:31:09 +0000 (17:31 +0000)] 
ap_pbase64decode(): save double NUL byte allocation and assignment.

apr_base64_decode_len() already accounts for the NUL byte, and
apr_base64_decode() already NUL terminates the string, no need
to do it in ap_pbase64decode().

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

4 years agoStop testing if a core dump was generated during the main test suite run.
Joe Orton [Fri, 27 Nov 2020 12:37:12 +0000 (12:37 +0000)] 
Stop testing if a core dump was generated during the main test suite run.

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

4 years agoRun the LDAP testing without pool-debug for the time being.
Joe Orton [Wed, 25 Nov 2020 08:13:59 +0000 (08:13 +0000)] 
Run the LDAP testing without pool-debug for the time being.

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

4 years agomod_auth_digest: fix crash with ONE_PROCESS (debug) mode shutdown.
Yann Ylavic [Wed, 25 Nov 2020 01:56:17 +0000 (01:56 +0000)] 
mod_auth_digest: fix crash with ONE_PROCESS (debug) mode shutdown.

Avoid double free/cleanup by just letting shm/rmm/global_mutex cleanups do
their work on restart/exit.

Set the globals to NULL in initialize_tables() should cleanup_tables() be
called on error.

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

4 years agoRevert r1883807 and r1883745, not the right fix.
Yann Ylavic [Wed, 25 Nov 2020 01:33:32 +0000 (01:33 +0000)] 
Revert r1883807 and r1883745, not the right fix.

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

4 years agomod_auth_digest: axe useless assignment from r1883745.
Yann Ylavic [Wed, 25 Nov 2020 00:25:23 +0000 (00:25 +0000)] 
mod_auth_digest: axe useless assignment from r1883745.

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

4 years agoAdjust name for pool-debug build. [skip ci]
Joe Orton [Tue, 24 Nov 2020 09:30:52 +0000 (09:30 +0000)] 
Adjust name for pool-debug build.  [skip ci]

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

4 years agoFor pool-debug builds, use APR/APR-util 1.7.x branches to pick
Joe Orton [Tue, 24 Nov 2020 08:27:00 +0000 (08:27 +0000)] 
For pool-debug builds, use APR/APR-util 1.7.x branches to pick
up e.g. the r1883751 locking fixes.

Re-enable mod_http2 and mod_ssl_ct in prefork pool-debug build
after r1883704 and r1883667.

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

4 years agomod_auth_digest: fix crash on ONE_PROCESS (debug) mode shutdown.
Yann Ylavic [Mon, 23 Nov 2020 11:14:56 +0000 (11:14 +0000)] 
mod_auth_digest: fix crash on ONE_PROCESS (debug) mode shutdown.

There need to be separate global variables for rmm and mutex(es) in the parent
and child processes, otherwise in ONE_PROCCESS (were clean_child_exit() and
ap_terminate() execute in the same process) the variables get overwritten in
child_init and freed twice when pchild and then pconf are destroyed.

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

4 years agomod_proxy: pconf vs pchild consistency, and correctness in ONE_PROCESS mode.
Yann Ylavic [Mon, 23 Nov 2020 11:03:45 +0000 (11:03 +0000)] 
mod_proxy: pconf vs pchild consistency, and correctness in ONE_PROCESS mode.

Consistently use pconf for ap_proxy_define_{worker,balancer}() and pchild for
ap_proxu_initialize_{worker,balancer}() in mod_proxy [child_]init code.

pchild is needed in _initialize() for mutexes/shms' child_init and cleanup,
and to avoid a crash on shutdown (i.e. ap_terminate) in ONE_PROCESS mode,
where worker->cp->pool is destroyed twice, let's register conn_pool_cleanup()
as a pre_cleanup of pchild.

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

4 years agoAdd a note on APR/APR-util caching. [skip ci]
Joe Orton [Mon, 23 Nov 2020 10:50:26 +0000 (10:50 +0000)] 
Add a note on APR/APR-util caching. [skip ci]

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

4 years agomod_case_filter_in: fix memory leak.
Yann Ylavic [Sun, 22 Nov 2020 22:37:43 +0000 (22:37 +0000)] 
mod_case_filter_in: fix memory leak.

Each ap_malloc()ed buffer should be free()d with its bucket.

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

4 years agocore: fix c->client_ip for unix socket connections.
Yann Ylavic [Sun, 22 Nov 2020 22:31:31 +0000 (22:31 +0000)] 
core: fix c->client_ip for unix socket connections.

Catch apr_socket_addr_get() error in core_create_conn() to avoid uninitialized
conn_rec->client_ip. This can happen for mod_proxy connections using unix
sockets, which are not handled by apr_socket_addr_get() until APR's r1883728
(trunk only for now).

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

4 years agomod_example_hooks: fix global "trace" string lifetime.
Yann Ylavic [Sun, 22 Nov 2020 01:08:06 +0000 (01:08 +0000)] 
mod_example_hooks: fix global "trace" string lifetime.

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

4 years agocore: reset ap_runtime_dir to NULL after AP_SQ_MS_DESTROY_CONFIG.
Yann Ylavic [Sun, 22 Nov 2020 01:06:11 +0000 (01:06 +0000)] 
core: reset ap_runtime_dir to NULL after AP_SQ_MS_DESTROY_CONFIG.

ap_runtime_dir_relative() might reuse ap_runtime_dir from previously cleared
pconf otherwise.

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

4 years agomod_proxy_http2: follow up to r1883704.
Yann Ylavic [Sun, 22 Nov 2020 00:56:07 +0000 (00:56 +0000)] 
mod_proxy_http2: follow up to r1883704.

For event/worker MPMs, pchild uses pconf's allocator, so its is NULL.

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

4 years agoWhitespace change to trigger travis (somehow interrupted).
Yann Ylavic [Sat, 21 Nov 2020 23:44:51 +0000 (23:44 +0000)] 
Whitespace change to trigger travis (somehow interrupted).

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

4 years agomod_proxy_http2: thread safety with MPM prefork, still..
Yann Ylavic [Sat, 21 Nov 2020 23:23:04 +0000 (23:23 +0000)] 
mod_proxy_http2: thread safety with MPM prefork, still..

The allocator of pchild has no mutex with MPM prefork, but we need one
for h2 workers threads synchronization.

Even though mod_http2 shouldn't be used with prefork, better be safe than
sorry, so forcibly set the mutex in h2_child_init() if it doesn't exist.

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

4 years agofr doc rebuild.
Lucien Gentis [Sat, 21 Nov 2020 13:43:04 +0000 (13:43 +0000)] 
fr doc rebuild.

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

4 years agofr doc XML files updates.
Lucien Gentis [Sat, 21 Nov 2020 13:42:06 +0000 (13:42 +0000)] 
fr doc XML files updates.

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

4 years agomod_proxy_http2: stop/wait the workers threads before their pool is killed.
Yann Ylavic [Fri, 20 Nov 2020 21:20:33 +0000 (21:20 +0000)] 
mod_proxy_http2: stop/wait the workers threads before their pool is killed.

There shouldn't be any worker thread active when pchild is destroyed (thus each
thread's pool), so register workers_pool_cleanup as a pre_cleanup of pchild.

This is to avoid races like the below stacktrace, where slot_run() threads
are still running when clean_child_exit() is called.

Thread 23 (Thread 0x7f4865b79800 (LWP 3740)):
#0  0x00007f4864dec449 in pthread_cond_destroy@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f4865020117 in run_cleanups (cref=<optimized out>) at memory/unix/apr_pools.c:2629
#2  pool_clear_debug (pool=pool@entry=0x558a5297e4a0, file_line=0x558a5237456b "event.c:757") at memory/unix/apr_pools.c:1830
#3  0x00007f486501ffee in pool_destroy_debug (pool=0x558a5297e4a0, file_line=<optimized out>) at memory/unix/apr_pools.c:1915
#4  0x00007f48650200f0 in pool_clear_debug (pool=pool@entry=0x558a52a41070, file_line=0x558a5237456b "event.c:757") at memory/unix/apr_pools.c:1827
#5  0x00007f486501ffee in pool_destroy_debug (pool=0x558a52a41070, file_line=<optimized out>) at memory/unix/apr_pools.c:1915
#6  0x00007f486502085c in apr_pool_destroy_debug (pool=<optimized out>, file_line=<optimized out>) at memory/unix/apr_pools.c:1957
#7  0x0000558a52326cfc in clean_child_exit (code=0) at event.c:757
#8  0x0000558a52327969 in child_main (child_num_arg=child_num_arg@entry=1, child_bucket=child_bucket@entry=0) at event.c:2926
#9  0x0000558a52327ce5 in make_child (s=0x558a52c9f840, slot=slot@entry=1, bucket=0) at event.c:2992
#10 0x0000558a52327d4c in startup_children (number_to_start=2, number_to_start@entry=3) at event.c:3015
#11 0x0000558a523289ac in event_run (_pconf=<optimized out>, plog=0x558a5273ce00, s=0x558a52c9f840) at event.c:3374
#12 0x0000558a5233e91e in ap_run_mpm (pconf=0x558a5270cbe0, plog=0x558a5273ce00, s=0x558a52c9f840) at mpm_common.c:100
#13 0x0000558a5231b763 in main (argc=<optimized out>, argv=<optimized out>) at main.c:844

Thread 2 (Thread 0x7f4840b70700 (LWP 3836)):
#0  0x00007f4864dec9f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f486501f65d in apr_thread_cond_wait (cond=<optimized out>, mutex=<optimized out>) at locks/unix/thread_cond.c:68
#2  0x00007f484e14ae4a in get_next (slot=0x558a528d5fe0) at h2_workers.c:209
#3  slot_run (thread=0x558a52828b30, wctx=0x558a528d5fe0) at h2_workers.c:228
#4  0x00007f4864de66db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f4864b0f88f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f4841b72700 (LWP 3834)):
#0  0x00007f4864a2ce97 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4864a2e801 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f4865020865 in apr_pool_destroy_debug (pool=<optimized out>, file_line=<optimized out>) at memory/unix/apr_pools.c:1955
#3  0x00007f486502b536 in apr_thread_exit (thd=thd@entry=0x558a52ba8980, retval=retval@entry=0) at threadproc/unix/thread.c:206
#4  0x00007f484e14aec6 in slot_run (thread=0x558a52ba8980, wctx=0x558a528d6060) at h2_workers.c:248
#5  0x00007f4864de66db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f4864b0f88f in clone () from /lib/x86_64-linux-gnu/libc.so.6

While at it, rename server_pool as pchild in h2_workers_create(), to make it
clear which pool it is.

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

4 years agomod_proxy_http2: explicitely apr_thread_exit() at the end of slot_run().
Yann Ylavic [Fri, 20 Nov 2020 16:55:10 +0000 (16:55 +0000)] 
mod_proxy_http2: explicitely apr_thread_exit() at the end of slot_run().

Calling apr_thread_exit() before returning from the thread function avoids
leaking the thread's pool (until/unless APR-2.0 is used).

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

4 years agomod_ssl_ct: join the threads before their parent pools are destroyed.
Yann Ylavic [Fri, 20 Nov 2020 16:31:21 +0000 (16:31 +0000)] 
mod_ssl_ct: join the threads before their parent pools are destroyed.

This can happen on stop/restart for the daeomon thread, or on clean_child_exit()
for the service thread.

When an apr_thread_create()d thread exits it destroys its pool (in any case),
either explicitely when apr_thread_exit() is called, or implicitely after the
function returns (only in APR 2.0 for now).

So we should make sure that mod_ssl_ct's daemon and service threads exit before
pconf and pchild (the parent pools, respectively) destroy their children pools,
otherwise the threads' pool will be destroyed twice and cause a crash.

Using a pre_cleanup to wait for the threads avoids this.

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

4 years agoFollow up to r1883639: debug log for rfc7231#section-5.1.1
Yann Ylavic [Thu, 19 Nov 2020 12:27:20 +0000 (12:27 +0000)] 
Follow up to r1883639: debug log for rfc7231#section-5.1.1

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

4 years agoRemove indentation preserved in r1883639 to ease review.
Yann Ylavic [Thu, 19 Nov 2020 12:13:41 +0000 (12:13 +0000)] 
Remove indentation preserved in r1883639 to ease review.

No functional changes.

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

4 years agoMake HTTP_IN filter send 100 continue in blocking mode only.
Yann Ylavic [Thu, 19 Nov 2020 12:12:04 +0000 (12:12 +0000)] 
Make HTTP_IN filter send 100 continue in blocking mode only.

When mod_proxy_http prefetches input data it calls the HTTP_IN filter
in nonblocking mode, but since it does not want 100 continue to be sent
for every case (e.g. 100-continue forwarding), it hacks r->expecting_100
(save in req->expecting_100, reset, eventually restore..) all over the
place.

Let's avoid this by making the HTTP_IN filter send 100 continue only
when called in blocking mode (once still), instead of the first time
it's called.

* modules/http/http_filters.c (struct http_filter_ctx): Add the seen_data
  bit and rename eos_sent to at_eos (HTTP_IN does not send any EOS).

* modules/http/http_filters.c (ap_http_filter): Move 100 continue
  handling outside the initialization/once block, and do it in blocking
  mode only. Track in ctx->seen_data whether some data were already
  received, and if so don't send 100 continue per RFC 7231 5.1.1.

* modules/proxy/mod_proxy_http.c: Remove req->expecting_100 (and its
  danse with r->expecting_100) now that reading from the input filters
  does the right thing.

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

4 years agoFix an harmless warning spoted by gcc 10 and -Werror=discarded-qualifiers
Christophe Jaillet [Sun, 15 Nov 2020 16:50:03 +0000 (16:50 +0000)] 
Fix an harmless warning spoted by gcc 10 and -Werror=discarded-qualifiers

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

4 years agoSave a few cycles.
Christophe Jaillet [Sat, 14 Nov 2020 12:46:38 +0000 (12:46 +0000)] 
Save a few cycles.

'is_absolute_uri()' returns the length of the prefix, so there is no need to scan
these bytes when looking for a '?' character

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

4 years agoExplain limitation of UnDefine syntax as already noted in Define.
Christophe Jaillet [Sat, 14 Nov 2020 08:40:17 +0000 (08:40 +0000)] 
Explain limitation of UnDefine syntax as already noted in Define.
Increase visibility of a warning, to be consistent with Define

PR 64909

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

4 years agoImprove a message about SessionExpiryUpdateInterval values
Christophe Jaillet [Sat, 14 Nov 2020 07:53:02 +0000 (07:53 +0000)] 
Improve a message about SessionExpiryUpdateInterval values

PR 64904

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

4 years agoRemove a useless and erroneous precision about the upper limit of LimitRequestFields.
Christophe Jaillet [Sat, 14 Nov 2020 07:34:19 +0000 (07:34 +0000)] 
Remove a useless and erroneous precision about the upper limit of LimitRequestFields.

While at it, improve an unrelated syntax highlight somewhere else.

 [skip ci]

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

4 years agoFix 2 typo [skip ci]
Christophe Jaillet [Sat, 14 Nov 2020 07:03:28 +0000 (07:03 +0000)] 
Fix 2 typo [skip ci]

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

4 years ago* modules/proxy/mod_proxy_wstunnel.c (proxyws_set_aysnch_delay):
Joe Orton [Tue, 10 Nov 2020 08:37:45 +0000 (08:37 +0000)] 
* modules/proxy/mod_proxy_wstunnel.c (proxyws_set_aysnch_delay):
  Fix typo in function name, no functional change.

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

4 years agoFix a misleading typo
Christophe Jaillet [Mon, 9 Nov 2020 06:59:17 +0000 (06:59 +0000)] 
Fix a misleading typo

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

4 years ago-Werror=maybe-uninitialized issue
Eric Covener [Sun, 8 Nov 2020 22:23:16 +0000 (22:23 +0000)] 
-Werror=maybe-uninitialized issue

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

4 years agoNeed to tickle travis after r1883209 in Apache::Test so might as well enable -v if...
Eric Covener [Sun, 8 Nov 2020 18:14:58 +0000 (18:14 +0000)] 
Need to tickle travis after r1883209 in Apache::Test so might as well enable -v if it fails.

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

4 years agofr doc rebuild.
Lucien Gentis [Sun, 8 Nov 2020 17:31:08 +0000 (17:31 +0000)] 
fr doc rebuild.

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

4 years agofr doc translation update.
Lucien Gentis [Sun, 8 Nov 2020 17:29:59 +0000 (17:29 +0000)] 
fr doc translation update.

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

4 years agoPR64785: mod_allowmethods: Allow methods to be added/removed with +/- prefix
Eric Covener [Sun, 8 Nov 2020 15:25:15 +0000 (15:25 +0000)] 
PR64785: mod_allowmethods: Allow methods to be added/removed with +/- prefix

Committed By: covener
Submitted By: Marcel Montes <spiceman gmail.com>

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

4 years agoOptimize 'ap_list_provider_names'.
Christophe Jaillet [Sat, 7 Nov 2020 18:59:15 +0000 (18:59 +0000)] 
Optimize 'ap_list_provider_names'.

Save some memory and potentialy avoid some useless copy .

Using 'goto' is not realy in line with httpd coding style, but the function is small and still readable IMHO.

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

4 years agofr doc rebuild.
Lucien Gentis [Sat, 7 Nov 2020 15:35:13 +0000 (15:35 +0000)] 
fr doc rebuild.

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

4 years agofr doc XML files updates.
Lucien Gentis [Sat, 7 Nov 2020 15:34:11 +0000 (15:34 +0000)] 
fr doc XML files updates.

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

4 years agompm_event: don't reset connections after lingering close timeout
Yann Ylavic [Wed, 4 Nov 2020 00:32:50 +0000 (00:32 +0000)] 
mpm_event: don't reset connections after lingering close timeout

While httpd is supposed to do lingering close for incoming data, it has no
control anyway over outgoing/pending data once they are handled by the
system.

So don't reset the connection after lingering close times out, otherwise the
system won't do its own lingering close to flush un-acked data.

The connection reset was introduced by r1802875 and backported to 2.4.28.

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

4 years agompm_event: don't kill keepalive connections on connections_above_limit().
Yann Ylavic [Tue, 3 Nov 2020 23:58:35 +0000 (23:58 +0000)] 
mpm_event: don't kill keepalive connections on connections_above_limit().

Before r1819855 (backported to 2.4.30), mpm_event killed keepalive connections
only when workers were exhausted, while this commit set workers_were_busy for
connections_above_limit().

Restore prior to r1819855 behaviour, and since ap_queue_info_num_idlers() is
now part of connections_above_limit(), let's update workers_were_busy there
only when necessary.

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

4 years ago* Do UBSan testing on Focal now
Ruediger Pluem [Mon, 2 Nov 2020 19:28:51 +0000 (19:28 +0000)] 
* Do UBSan testing on Focal now

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

4 years agoRebuild
Christophe Jaillet [Sun, 1 Nov 2020 12:48:42 +0000 (12:48 +0000)] 
Rebuild

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

4 years agoAdd some mod_proxy_uwsgi related tweaks
Christophe Jaillet [Sun, 1 Nov 2020 12:38:30 +0000 (12:38 +0000)] 
Add some mod_proxy_uwsgi related tweaks

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

4 years agoRebuild
Christophe Jaillet [Sun, 1 Nov 2020 12:02:31 +0000 (12:02 +0000)] 
Rebuild

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

4 years agoFix a typo.
Christophe Jaillet [Sun, 1 Nov 2020 12:01:28 +0000 (12:01 +0000)] 
Fix a typo.

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

4 years agofr doc rebuild.
Lucien Gentis [Sat, 31 Oct 2020 14:02:16 +0000 (14:02 +0000)] 
fr doc rebuild.

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

4 years agofr doc - XML file update.
Lucien Gentis [Sat, 31 Oct 2020 14:00:32 +0000 (14:00 +0000)] 
fr doc - XML file update.

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

4 years ago* Condition is not needed on Focal as the system APR (1.6) is recent enough for trunk...
Ruediger Pluem [Fri, 30 Oct 2020 20:06:33 +0000 (20:06 +0000)] 
* Condition is not needed on Focal as the system APR (1.6) is recent enough for trunk [skip ci]

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

4 years agoDocument that KeepAliveTimeout still applies regardless of
Joe Orton [Fri, 30 Oct 2020 10:28:30 +0000 (10:28 +0000)] 
Document that KeepAliveTimeout still applies regardless of
how RequestReadTimeout is used (had some user confusion by this
since the behaviour changed within 2.4.x, e.g. PR 56729).

[skip ci]

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

5 years ago* Two first tests using Ubuntu Focal
Ruediger Pluem [Fri, 23 Oct 2020 06:24:55 +0000 (06:24 +0000)] 
* Two first tests using Ubuntu Focal

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

5 years ago* apr_base64_encode_len already includes space for the terminating zero
Ruediger Pluem [Fri, 23 Oct 2020 06:23:03 +0000 (06:23 +0000)] 
* apr_base64_encode_len already includes space for the terminating zero
  and apr_base64_encode returns a zero terminated string in encoded.

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

5 years agoDisable mod_http2 and mod_ssl_ct for prefork builds, since the former
Joe Orton [Thu, 15 Oct 2020 16:04:12 +0000 (16:04 +0000)] 
Disable mod_http2 and mod_ssl_ct for prefork builds, since the former
shouldn't be used under prefork and the latter isn't tested at all.
Possibly related to infrequent prefork child segfaults under pool-debug.

e.g. https://travis-ci.org/github/apache/httpd/jobs/736044109
is a multi-threaded prefork child dying with both mod_h2 and mod_ssl_ct
threads active.

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

5 years ago *) mod_md: lowered the required minimal libcurl version from 7.50 to 7.29
Stefan Eissing [Thu, 15 Oct 2020 13:45:31 +0000 (13:45 +0000)] 
  *) mod_md: lowered the required minimal libcurl version from 7.50 to 7.29
     as proposed by <alexander.gerasimov@codeit.pro>.

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

5 years agoadded new feature line to index
Luis Gil [Tue, 13 Oct 2020 01:22:24 +0000 (01:22 +0000)] 
added new feature line to index

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

5 years agoAdding encrypt.html.es.utf8
Luis Gil [Tue, 13 Oct 2020 01:16:29 +0000 (01:16 +0000)] 
Adding encrypt.html.es.utf8

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

5 years agoStyle lang es update to match eng revision
Luis Gil [Tue, 13 Oct 2020 00:39:08 +0000 (00:39 +0000)] 
Style lang es update to match eng revision

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

5 years ago'md_ocsp_get_stapling_status()' should return int, not apr_status_t.
Christophe Jaillet [Sun, 11 Oct 2020 07:50:46 +0000 (07:50 +0000)] 
'md_ocsp_get_stapling_status()' should return int, not apr_status_t.

This is similar to r1876549 for another function.

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

5 years agoAdjust signal handler before unblocking
Ruediger Pluem [Fri, 9 Oct 2020 19:32:27 +0000 (19:32 +0000)] 
Adjust signal handler before unblocking

* server/mpm/event/event.c: Set the new signal handler before unblocking the
  signal as otherwise queued signals get delivered to the old handler
  immediately when the signal is unblocked.

* server/mpm/worker/worker.c: Same thing as with event.

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

5 years agorebuild all for russian langage integration.
Lucien Gentis [Fri, 9 Oct 2020 14:52:44 +0000 (14:52 +0000)] 
rebuild all for russian langage integration.

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

5 years agodoc rebuild for russian integration.
Lucien Gentis [Fri, 9 Oct 2020 14:33:17 +0000 (14:33 +0000)] 
doc rebuild for russian integration.

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

5 years agorussian doc rebuild.
Lucien Gentis [Fri, 9 Oct 2020 14:26:03 +0000 (14:26 +0000)] 
russian doc rebuild.

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

5 years agorussian doc - obsolete file.
Lucien Gentis [Fri, 9 Oct 2020 14:13:49 +0000 (14:13 +0000)] 
russian doc - obsolete file.

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

5 years agorussian doc - obsolete file.
Lucien Gentis [Fri, 9 Oct 2020 14:10:49 +0000 (14:10 +0000)] 
russian doc - obsolete file.

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

5 years agorussian doc - from KOI8-R to UTF-8, missing change.
Lucien Gentis [Fri, 9 Oct 2020 13:55:30 +0000 (13:55 +0000)] 
russian doc - from KOI8-R to UTF-8, missing change.

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

5 years agorussian doc - adding first files.
Lucien Gentis [Fri, 9 Oct 2020 13:43:21 +0000 (13:43 +0000)] 
russian doc - adding first files.

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

5 years agorussian doc - from KOI8-R to UTF-8
Lucien Gentis [Fri, 9 Oct 2020 13:07:05 +0000 (13:07 +0000)] 
russian doc - from KOI8-R to UTF-8

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

5 years agoFix a compilation error in maintainer mode and be consistent with 'make_autoindex_ent...
Christophe Jaillet [Sun, 4 Oct 2020 08:59:45 +0000 (08:59 +0000)] 
Fix a compilation error in maintainer mode and be consistent with 'make_autoindex_entry()'

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

5 years agoSave a few bytes of memory in mod_autoindex
Christophe Jaillet [Sun, 4 Oct 2020 08:33:52 +0000 (08:33 +0000)] 
Save a few bytes of memory in mod_autoindex

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

5 years agoSave a few bytes of memory when registering Mutex
Christophe Jaillet [Sun, 4 Oct 2020 07:21:59 +0000 (07:21 +0000)] 
Save a few bytes of memory when registering Mutex

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

5 years agofr doc rebuild.
Lucien Gentis [Sat, 3 Oct 2020 13:43:06 +0000 (13:43 +0000)] 
fr doc rebuild.

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

5 years agofr doc XML file update.
Lucien Gentis [Sat, 3 Oct 2020 13:41:51 +0000 (13:41 +0000)] 
fr doc XML file update.

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

5 years agoAdd a missing </tr>
Christophe Jaillet [Sat, 3 Oct 2020 06:07:55 +0000 (06:07 +0000)] 
Add a missing </tr>

PR 64754

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

5 years agoxforms [skip ci]
Christophe Jaillet [Fri, 2 Oct 2020 15:55:32 +0000 (15:55 +0000)] 
xforms [skip ci]

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

5 years agoDocument that HTTPS and SSL_TLS_SNI environment variables are always defined, regardl...
Christophe Jaillet [Fri, 2 Oct 2020 15:52:39 +0000 (15:52 +0000)] 
Document that HTTPS and SSL_TLS_SNI environment variables are always defined, regardless of 'SSLOptions StdEnvVars' .

Fix some small style issues to improve syntax hightlight.

PR 64783.

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

5 years agofr doc rebuild.
Lucien Gentis [Sun, 27 Sep 2020 12:34:09 +0000 (12:34 +0000)] 
fr doc rebuild.

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

5 years agofr doc XML file update.
Lucien Gentis [Sun, 27 Sep 2020 12:32:39 +0000 (12:32 +0000)] 
fr doc XML file update.

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

5 years agoAdd missing comma in some 'apr_apr_psprintf()' call if APR_HAS_THREADS is not defined
Christophe Jaillet [Sun, 27 Sep 2020 09:00:35 +0000 (09:00 +0000)] 
Add missing comma in some 'apr_apr_psprintf()' call if APR_HAS_THREADS is not defined

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

5 years agoAdd missing "const" or "static const" qualifiers in some command_rec
Christophe Jaillet [Sun, 27 Sep 2020 07:52:55 +0000 (07:52 +0000)] 
Add missing "const" or "static const" qualifiers in some command_rec
definitions.

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

5 years agomod_proxy: Add support for an optional third argument to ProxyRemote*
Joe Orton [Thu, 17 Sep 2020 11:31:43 +0000 (11:31 +0000)] 
mod_proxy: Add support for an optional third argument to ProxyRemote*
to configure the Basic auth credentials to send to the remote proxy.

(Note that credentials are always sent w/o waiting for a challenge as
with proxy-chain-auth, and only Basic is supported - both of which are
not exactly ideal - but better than nothing.)

* modules/proxy/mod_proxy.h (struct proxy_remote): Add creds field.

* modules/proxy/mod_proxy.c (proxy_handler): Pass forward proxy
  credentials via r->notes.
  (add_proxy): Take credentials and base64-encode into ->creds field if
  passed.
  (add_proxy_noregex, add_proxy_regex): Take optional creds argument.

* modules/proxy/proxy_util.c (ap_proxy_determine_connection):
  Use proxy credentials from r->notes if available.
  (ap_proxy_create_hdrbrgd): Set Proxy-Authorization header from
  credentials in r->notes if present.

PR: 37355
Github: closes #135

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