]> granicus.if.org Git - apache/log
apache
5 years agoupdate after backport
Stefan Eissing [Fri, 3 Aug 2018 10:55:13 +0000 (10:55 +0000)]
update after backport

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

5 years agoOn the trunk:
Stefan Eissing [Fri, 3 Aug 2018 10:38:33 +0000 (10:38 +0000)]
On the trunk:

mod_md: When the last domain name from an MD is moved to another one,
     that now empty MD gets moved to the store archive. PR 62572.

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

5 years agoevent, worker: follow up to r1835845, r1837354: pruntime is global now.
Yann Ylavic [Fri, 3 Aug 2018 10:27:18 +0000 (10:27 +0000)]
event, worker: follow up to r1835845, r1837354: pruntime is global now.

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

5 years agoevent, worker: initialize the objects used by signal_threads() first.
Yann Ylavic [Fri, 3 Aug 2018 09:53:42 +0000 (09:53 +0000)]
event, worker: initialize the objects used by signal_threads() first.

Follow up to r1835845.

If a signal is received early when the MPM children start, signal_threads() may
be called concurrently with start_streads() thus before the latter (or its
underlying threads like the listener_thread) had a chance to create and init
the queues, mutexes, pollset and sockets array used by the former.

So move those initializations to a new setup_threads_runtime() function called
before start_threads(), where the pruntime pool is also created.

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

5 years agoIf ProxyPassReverse is used for reverse mapping of relative redirects, subsequent...
Christophe Jaillet [Wed, 1 Aug 2018 18:53:53 +0000 (18:53 +0000)]
If ProxyPassReverse is used for reverse mapping of relative redirects, subsequent ProxyPassReverse statements, whether they are relative or absolute, may fail.

PR 60408 [Peter Haworth <pmh1wheel gmail.com>]

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

5 years agoFix PR54848 in a 2.4.x backportable format. Ideally deprecating the use
Jim Jagielski [Wed, 1 Aug 2018 11:27:28 +0000 (11:27 +0000)]
Fix PR54848 in a 2.4.x backportable format. Ideally deprecating the use
of ->client in whatever version of 2.4 this is added into would be
more logical.

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

5 years agospelling
Christophe Jaillet [Tue, 31 Jul 2018 21:58:44 +0000 (21:58 +0000)]
spelling

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

5 years agoUpdated to match English revision 1834263 added the hints secction to spanish
Luis Gil [Tue, 31 Jul 2018 16:47:55 +0000 (16:47 +0000)]
Updated to match English revision 1834263 added the hints secction to spanish

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

5 years agoRebuild.
Lucien Gentis [Tue, 31 Jul 2018 16:11:13 +0000 (16:11 +0000)]
Rebuild.

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

5 years agoXML updates.
Lucien Gentis [Tue, 31 Jul 2018 16:10:16 +0000 (16:10 +0000)]
XML updates.

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

5 years agocore: set ap_request_core_filter() last.
Yann Ylavic [Tue, 31 Jul 2018 10:50:18 +0000 (10:50 +0000)]
core: set ap_request_core_filter() last.

Since it may retain data and should run after other "request" filters, use
the last possible position for a "request" filter: AP_FTYPE_CONNECTION - 1.

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

5 years agomod_ratelimit: Don't interfere with "chunked" encoding.
Yann Ylavic [Tue, 31 Jul 2018 10:35:46 +0000 (10:35 +0000)]
mod_ratelimit: Don't interfere with "chunked" encoding.

By the time ap_http_header_filter() sends the header brigade and adds the
"CHUNK" filter, we need to garantee that the header went through all the
filters' stack, and more specifically above ap_http_chunk_filter() which
assumes that all it receives is content data.
Since rate_limit_filter() may retain the header brigade, make it run after
ap_http_chunk_filter(), just before AP_FTYPE_CONNECTION filters.

Also, ap_http_header_filter() shouldn't eat the EOS for HEAD/no-body responses.
For instance mod_ratelimit depends on it since r1835168, but any next request
filter may as well to flush and/or bail out approprietely.

This fixes the regression introduced in 2.4.34 (r1835168).
PR 62568.

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

5 years agomissing english rev-1779744 from line 274 to end everything else updated, will be...
Luis Gil [Mon, 30 Jul 2018 17:07:35 +0000 (17:07 +0000)]
missing english rev-1779744 from line 274 to end everything else updated, will be added in next commit

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

5 years agomissing english rev-1779744 from line 274 to end every thin else updated, will be...
Luis Gil [Mon, 30 Jul 2018 17:06:17 +0000 (17:06 +0000)]
missing english rev-1779744 from line 274 to end every thin else updated, will be added in next commit

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

5 years agorebuild html file
Luis Gil [Mon, 30 Jul 2018 16:41:06 +0000 (16:41 +0000)]
rebuild html file

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

5 years agoupdated translation to match EN-rev 1826856.
Luis Gil [Mon, 30 Jul 2018 15:11:07 +0000 (15:11 +0000)]
updated translation to match EN-rev 1826856.

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

5 years agoBackported in 2.4.34.
Yann Ylavic [Mon, 30 Jul 2018 13:29:13 +0000 (13:29 +0000)]
Backported in 2.4.34.

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

5 years agohttp: Enforce consistently no response body with both 204 and 304 statuses.
Yann Ylavic [Mon, 30 Jul 2018 13:08:23 +0000 (13:08 +0000)]
http: Enforce consistently no response body with both 204 and 304 statuses.

Provide AP_STATUS_IS_HEADER_ONLY() helper/macro to check for 204 or 304 and
use it where some special treatment is needed when no body is expected.

Some of those places handled 204 only.

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

5 years agomod_proxy_http: follow up to r1836588: nonblocking read for 100-continue body.
Yann Ylavic [Mon, 30 Jul 2018 10:14:42 +0000 (10:14 +0000)]
mod_proxy_http: follow up to r1836588: nonblocking read for 100-continue body.

Set nonblocking read (req->flushall) when handling 100-continue since no body
is expected to be there already.

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

5 years agoupdated line that has been added on English revision file
Luis Gil [Fri, 27 Jul 2018 09:45:24 +0000 (09:45 +0000)]
updated line that has been added on English revision file

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

5 years agoxform
Eric Covener [Thu, 26 Jul 2018 19:48:05 +0000 (19:48 +0000)]
xform

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

5 years agoreplace mystery smart-quotes copy/pasted from httpd.conf + vi.
Eric Covener [Thu, 26 Jul 2018 19:47:48 +0000 (19:47 +0000)]
replace mystery smart-quotes copy/pasted from httpd.conf + vi.

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

5 years agomod_proxy_http: follow up to r1836588: fix drop of spurious 100 responses.
Yann Ylavic [Thu, 26 Jul 2018 17:51:09 +0000 (17:51 +0000)]
mod_proxy_http: follow up to r1836588: fix drop of spurious 100 responses.

r1836588 broke t/security/CVE-2008-2364.t by forwarding more than one
"100 continue" response, fix it.

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

5 years agomod_proxy_http: follow up to r1836588/r1836648: handle unread 100-continue.
Yann Ylavic [Thu, 26 Jul 2018 11:29:51 +0000 (11:29 +0000)]
mod_proxy_http: follow up to r1836588/r1836648: handle unread 100-continue.

When the backend responds with a non-interim response to a 100-continue,
mod_proxy_http won't read the client's body, so make sure "Connection: close"
ends up being added to the response if nobody reads that body later.

The right thing to do at mod_proxy level, rather then forcing AP_CONN_CLOSE,
is to restore r->expecting_100 so that further processing (like error_override
or trying on the next balancer member) can still work.

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

5 years agoclean up sandbox, touch mod_proxy.xml, rebuild.
Eric Covener [Thu, 26 Jul 2018 10:46:48 +0000 (10:46 +0000)]
clean up sandbox, touch mod_proxy.xml, rebuild.

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

5 years agoxforms
Eric Covener [Thu, 26 Jul 2018 00:51:41 +0000 (00:51 +0000)]
xforms

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

5 years agoexpand on ProxyPassReverse args
Eric Covener [Thu, 26 Jul 2018 00:51:31 +0000 (00:51 +0000)]
expand on ProxyPassReverse args

split up the two arguments into their own paragraphs
try to reinforce that the 2nd arg has to match the response
hedaer, and what the first one is used for.

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

5 years agomod_proxy_http: follow up to r1836588: avoid 100-continue responses from core.
Yann Ylavic [Wed, 25 Jul 2018 16:33:44 +0000 (16:33 +0000)]
mod_proxy_http: follow up to r1836588: avoid 100-continue responses from core.

When mod_proxy_http handles end-to-end "100 continue", it can't let
ap_http_filter() send its own interim response whenever the body is read.

So save/restore r->expecting_100 before/after handling the request, and use
req->expecting_100 internally (including to restore r->expecting appropriately).

While at it, add comments and debug logs about 100 continue handling, and
fill in missing APLOGNO()s from r1836588.

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

5 years agoxform
Eric Covener [Wed, 25 Jul 2018 14:46:43 +0000 (14:46 +0000)]
xform

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

5 years agoadd 2 conditional logging examples
Eric Covener [Wed, 25 Jul 2018 14:46:33 +0000 (14:46 +0000)]
add 2 conditional logging examples

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

5 years ago* Forward port r1832855 missing in trunk.
Ruediger Pluem [Wed, 25 Jul 2018 08:54:50 +0000 (08:54 +0000)]
* Forward port r1832855 missing in trunk.

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

5 years ago* ap_proxy_balancer_get_best_worker cannot be exported and used as an optional
Ruediger Pluem [Wed, 25 Jul 2018 06:22:53 +0000 (06:22 +0000)]
* ap_proxy_balancer_get_best_worker cannot be exported and used as an optional
  function at the same time. So rename ap_proxy_balancer_get_best_worker to
  proxy_balancer_get_best_worker and make it static which is then used as an
  optional function and recreate ap_proxy_balancer_get_best_worker as an
  exported thin wrapper of proxy_balancer_get_best_worker.

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

5 years agomod_proxy_http: forward 100-continue.
Yann Ylavic [Tue, 24 Jul 2018 21:55:29 +0000 (21:55 +0000)]
mod_proxy_http: forward 100-continue.

Handle end-to-end 100-continue, according to RFC 7231, such that the client
request body is not read/forwarded (according to its "Expect:" header) until
the backend wants to receive it (with interim 100 continue response), or never
forwarded if the backend provides a (non-interim) response and doesn't need
the client body at all.

This is achieved by filling the header_brigade in ap_proxy_http_prefetch()
and letting ap_proxy_http_request() determine whether it should forward that
brigade only (with the "Expect: 100-continue" specified by the client or added
according to "ping=" configuration), or forward the whole body for the usual
case (as before).

When 100-continue expectation is in place, the body is actually forwarded by
ap_proxy_http_process_response() when/if a "100 continue" response is sent by
the backend, otherwise the body is discarded; a future enhancement could make
so that in a balancer configuration, the body could be forwarded to another
balancer member depending on the status/error from the backend.

So stream_reqbody_cl() and stream_reqbody_chunked() functions are adapted to be
called by either ap_proxy_http_request() or ap_proxy_http_process_response(),
while spool_reqbody_cl() still spools the body in ap_proxy_http_prefetch() thus
before the backend is connected/reused to avoid inactivity on the connection
for the prefetch time (the prefetched body is also forwarded according to the
100-continue expectation, though).

Also, since the brigades and other runtime objects now need to be shared by the
ap_proxy_http_*() functions chain, a proxy_http_req_t struct/context is created
from the start and passed to them as (the single) argument. This is also a good
candidate for a future async baton, if we wanted to let the MPM event wait for
connection data for us at any stage and be called back ;)

Finally, ap_send_interim_response() is modified to correcly handle 100 continue
responses once, and take care of clearing r->expecting_100 only for them.

PR 60330.

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

5 years ago* modules/ssl/ssl_engine_pphrase.c: Fix linking against OpenSSL without
Joe Orton [Tue, 24 Jul 2018 11:32:17 +0000 (11:32 +0000)]
* modules/ssl/ssl_engine_pphrase.c: Fix linking against OpenSSL without
  ENGINE support.

PR: 62563

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

5 years ago* config.layout: Allow configure --localstatedir to over-ride /var/www
Joe Orton [Mon, 23 Jul 2018 08:39:05 +0000 (08:39 +0000)]
* config.layout: Allow configure --localstatedir to over-ride /var/www
  location in Fedora layout.

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

5 years ago * mark mod_proxy_http2 and mod_md as 'experimental' on their documentation
Stefan Eissing [Mon, 23 Jul 2018 08:35:18 +0000 (08:35 +0000)]
 * mark mod_proxy_http2 and mod_md as 'experimental' on their documentation

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

5 years ago* Add missing log numbers
Ruediger Pluem [Fri, 20 Jul 2018 20:17:08 +0000 (20:17 +0000)]
* Add missing log numbers

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

5 years ago* Credits to Bill for the analysis and the pointer to the solution.
Ruediger Pluem [Fri, 20 Jul 2018 19:41:56 +0000 (19:41 +0000)]
* Credits to Bill for the analysis and the pointer to the solution.

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

5 years ago* Always retrieve conditional function. static variable might contain garbage if...
Ruediger Pluem [Fri, 20 Jul 2018 19:36:01 +0000 (19:36 +0000)]
* Always retrieve conditional function. static variable might contain garbage if module was reloaded in a static build.

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

5 years ago* Remove invalid copy and paste comments
Ruediger Pluem [Fri, 20 Jul 2018 19:29:06 +0000 (19:29 +0000)]
* Remove invalid copy and paste comments

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

5 years ago* mod_proxy: Remove load order and link dependency between mod_lbmethod_*
Ruediger Pluem [Fri, 20 Jul 2018 19:27:31 +0000 (19:27 +0000)]
* mod_proxy: Remove load order and link dependency between mod_lbmethod_*
  modules and mod_proxy by providing mod_proxy's ap_proxy_balancer_get_best_worker
  as an optional function.

PR: 62557

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

5 years agocore: axe data_in_in/output_filter from conn_rec.
Yann Ylavic [Fri, 20 Jul 2018 15:47:16 +0000 (15:47 +0000)]
core: axe data_in_in/output_filter from conn_rec.

They were superseded by ap_filter_should_yield() and ap_run_in/output_pending()
in r1706669 and had poor semantics since then (we can't maintain pending
semantics both by filter and for the whole connection).

Register ap_filter_input_pending() as the default input_pending hook (which
seems to have been forgotten in the first place).

On the MPM event side, we don't need to flush pending output data when the
connection has just been processed, ap_filter_should_yield() is lightweight and
enough to determine whether we should really enter write completion state or go
straight to reading. ap_run_output_pending() is used only when write completion
is in place and needs to be completed before more processing.

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

5 years agocore: follow up to r1836237: core filter's tmp_flush_bb not used anymore.
Yann Ylavic [Fri, 20 Jul 2018 15:04:55 +0000 (15:04 +0000)]
core: follow up to r1836237: core filter's tmp_flush_bb not used anymore.

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

5 years agoxform
Eric Covener [Fri, 20 Jul 2018 02:29:59 +0000 (02:29 +0000)]
xform

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

5 years agoCorrect see also comment
William A. Rowe Jr [Thu, 19 Jul 2018 17:57:05 +0000 (17:57 +0000)]
Correct see also comment

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

5 years agomod_proxy_hcheck: take balancer's SSLProxy* directives into account.
Yann Ylavic [Thu, 19 Jul 2018 15:25:40 +0000 (15:25 +0000)]
mod_proxy_hcheck: take balancer's SSLProxy* directives into account.

mod_proxy_hcheck was missing the merge of SSLProxy* directives defined by
balancer with the ones of the VirtualHost.

Since ap_proxy_connection_create_ex() needs a merged r->per_dir_config to apply
the correct SSL configuration, let's split create_request_rec() in two:
- create_request_rec() to only initialize the non-connection fields and merge
  balancer->section_config into r->per_dir_config,
- set_request_connection() to associate the connection with the request once
  it's been created from the merged configuration of the minimal request.

The issue was reported on the users@ mailing list:
https://lists.apache.org/thread.html/895cf250104b081b789101b1086b71a26d9c337db7123c5a552b7c69@%3Cusers.httpd.apache.org%3E

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

5 years agocore: follow up to r1836237: whitelist in-memory buckets.
Yann Ylavic [Thu, 19 Jul 2018 09:06:37 +0000 (09:06 +0000)]
core: follow up to r1836237: whitelist in-memory buckets.

As Eric noted, this is safer w.r.t. third party buckets which could be
uncought by the previous backlist and get out of memory limits.

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

5 years agoutil_filter: axe loglevel explicit checks already done by ap_log_cerror().
Yann Ylavic [Wed, 18 Jul 2018 22:43:45 +0000 (22:43 +0000)]
util_filter: axe loglevel explicit checks already done by ap_log_cerror().

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

5 years agocore: avoid double loop in ap_filter_output_pending().
Yann Ylavic [Wed, 18 Jul 2018 22:40:32 +0000 (22:40 +0000)]
core: avoid double loop in ap_filter_output_pending().

Since ap_filter_output_pending() is looping on the relevant filters already,
we don't need to use ap_filter_should_yield() to check upstream filters.

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

5 years agocore: integrate data_in_{in,out}put_filter to ap_filter_{in,out}put_pending().
Yann Ylavic [Wed, 18 Jul 2018 22:36:19 +0000 (22:36 +0000)]
core: integrate data_in_{in,out}put_filter to ap_filter_{in,out}put_pending().

Straightforward for ap_filter_input_pending() since c->data_in_input_filter is
always checked wherever ap_run_input_pending(c) is.

For ap_filter_output_pending(), this allows to set c->data_in_output_filter in
ap_process_request_after_handler() and avoid an useless flush from mpm_event.

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

5 years agocore: core output filter optimizations.
Yann Ylavic [Wed, 18 Jul 2018 21:55:29 +0000 (21:55 +0000)]
core: core output filter optimizations.

The core output filter used to determine first if it needed to block before
trying to send its data (including set aside ones), and if so it did call
send_brigade_blocking().

This can be avoided by making send_brigade_nonblocking() send as much data as
possible (nonblocking), and only if data remain check whether they should be
flushed (blocking), according to the same ap_filter_reinstate_brigade()
heuristics but afterward.

This allows both to simplify the code (axe send_brigade_blocking and some
duplicated logic) and optimize sends since send_brigade_nonblocking() is now
given all the buckets so it can make use of scatter/gather (iovec) or NOPUSH
option with the whole picture.

When sendfile is available and/or with fine tuning of FlushMaxThreshold (and
ReadBufferSize) from r1836032, one can now take advantage of modern network
speeds and bandwidth.

This commit also adds some APLOG_TRACE6 messages for outputed bytes (including
at mod_ssl level since splitting happens there when it's active).

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

5 years ago* Makefile.in (install-suexec*): Fix make -jN install.
Joe Orton [Wed, 18 Jul 2018 09:02:18 +0000 (09:02 +0000)]
* Makefile.in (install-suexec*): Fix make -jN install.

Submitted by: Arkadiusz Miskiewicz <arekm maven.pl>

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

5 years ago * using the, hopefully correct, ever elusive libressl version numbering check for...
Stefan Eissing [Tue, 17 Jul 2018 09:36:23 +0000 (09:36 +0000)]
 * using the, hopefully correct, ever elusive libressl version numbering check for the new openssl API calls, fixes PR 62548.

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

5 years agoEnglish version reference update.
Lucien Gentis [Tue, 17 Jul 2018 09:34:39 +0000 (09:34 +0000)]
English version reference update.

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

5 years agoenglish as first/only language
Eric Covener [Mon, 16 Jul 2018 19:46:19 +0000 (19:46 +0000)]
english as first/only language

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

5 years agoparaphrase rfcs/code better
Eric Covener [Mon, 16 Jul 2018 19:45:36 +0000 (19:45 +0000)]
paraphrase rfcs/code better

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

5 years agocore: Add ReadBufferSize, FlushMaxThreshold and FlushMaxPipelined directives.
Yann Ylavic [Mon, 16 Jul 2018 12:49:55 +0000 (12:49 +0000)]
core: Add ReadBufferSize, FlushMaxThreshold and FlushMaxPipelined directives.

ReadBufferSize allows to configure the size of read buffers, for now it's
mainly used for file buckets reads (apr_bucket_file_set_buf_size), but it could
be used to replace AP_IOBUFSIZE in multiple places.

FlushMaxThreshold and FlushMaxPipelined allow to configure the hardcoded
THRESHOLD_MAX_BUFFER and MAX_REQUESTS_IN_PIPELINE from "util_filter.c".
The former sets the maximum size above which pending data are forcibly flushed
to the network (blocking eventually), and the latter sets the number of
pipelined/pending responses above which they are flushed regardless of whether
a pipelined request is immediately available (zero disables pipelining).

Larger ReadBufferSize and FlushMaxThreshold can trade memory consumption for
performances with the capacity of today's networks.

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

5 years agoRebuild.
Lucien Gentis [Mon, 16 Jul 2018 12:05:25 +0000 (12:05 +0000)]
Rebuild.

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

5 years agoXML update.
Lucien Gentis [Mon, 16 Jul 2018 12:02:32 +0000 (12:02 +0000)]
XML update.

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

5 years agoutil_filter: Axe conn_rec->empty brigade.
Yann Ylavic [Mon, 16 Jul 2018 11:20:26 +0000 (11:20 +0000)]
util_filter: Axe conn_rec->empty brigade.

Since it's internal util_filter use, we shouldn't expose it in conn_rec and
can replace it with a pooled brigade provided by ap_reuse_brigade_from_pool().

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

5 years agocore: Add ap_reuse_brigade_from_pool().
Yann Ylavic [Mon, 16 Jul 2018 11:06:57 +0000 (11:06 +0000)]
core: Add ap_reuse_brigade_from_pool().

Current RETRIEVE_BRIGADE_FROM_POOL macro from "http_request.c" is turned into
a helper and used in ap_request_core_filter().

We will need it in a subsequent commit in "util_filter.c" too.

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

5 years agoutil_filter: follow up to r1835640: pending_filter_cleanup() precedence.
Yann Ylavic [Fri, 13 Jul 2018 16:04:37 +0000 (16:04 +0000)]
util_filter: follow up to r1835640: pending_filter_cleanup() precedence.

Register pending_filter_cleanup() as a normal cleanup (not pre_cleanup) so
that the pending filters are still there on pool cleanup, and f->bb is set
to NULL where needed.

Then is_pending_filter() check is moved where relevant.

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

5 years agoevent: follow up to r1835845.
Yann Ylavic [Fri, 13 Jul 2018 15:16:37 +0000 (15:16 +0000)]
event: follow up to r1835845.

Always favor APR_POLLSET_WAKEABLE over method/implementation.
Probably more about correctness than a real issue since systems are
unlikely to implement more than one/their method...

This also makes use of pruntime for event_pollset (an oversight from r1835845).

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

5 years agoevent, worker: runtime pool.
Yann Ylavic [Fri, 13 Jul 2018 15:02:03 +0000 (15:02 +0000)]
event, worker: runtime pool.

MPMs event and worker both need a dedicated pool to handle the creation of
the threads (listener, workers) and synchronization objects (queues, pollset,
mutexes...) in the start_threads() thread, with at least the lifetime of
the connections they handle, and thus survive pchild destruction (notably
in ONE_PROCCESS mode, but SIG_UNGRACEFUL is concerned too).

For instance, without this fix, the below backtrace can happen in ONE_PROCCESS
mode and a signal/^C is received (with active connections):

Thread 1 "httpd" received signal SIGSEGV, Segmentation fault.
(gdb) bt
#0  <BOOM>
#1  0x00007ffff7c7e016 in apr_file_write (thefile=0x0, ...)
                                          ^ NULL (cleared)
                       at file_io/unix/readwrite.c:230
#2  0x00007ffff7c7e4a7 in apr_file_putc (ch=1 '\001', thefile=0x0)
                                                      ^ NULL (cleared)
                       at file_io/unix/readwrite.c:377
#3  0x00007ffff7c8da4a in apr_pollset_wakeup (pollset=0x55555568b870)
                                              ^ already destroyed by pchild
                       at poll/unix/pollset.c:224
#4  0x00007ffff7fc16c7 in decrement_connection_count (cs_=0x7fff08000ea0)
                       at event.c:811
#5  0x00007ffff7c83e15 in run_cleanups (cref=0x7fffe4002b78)
                       at memory/unix/apr_pools.c:2672
#6  0x00007ffff7c82c2f in apr_pool_destroy (pool=0x7fffe4002b58)
                                            ^ master_conn
                       at memory/unix/apr_pools.c:1007
#7  0x00007ffff7c82c12 in apr_pool_destroy (pool=0x7fff08000c28)
                                            ^ ptrans
                       at memory/unix/apr_pools.c:1004
#8  0x00007ffff7c82c12 in apr_pool_destroy (pool=0x555555638698)
                                            ^ pconf
                       at memory/unix/apr_pools.c:1004
#9  0x00007ffff7c82c12 in apr_pool_destroy (pool=0x555555636688)
                                            ^ pglobal
                       at memory/unix/apr_pools.c:1004
#10 0x00005555555f4709 in ap_terminate ()
                       at unixd.c:522
#11 0x00007ffff6dbc8f1 in __run_exit_handlers (...)
                       at exit.c:108
#12 0x00007ffff6dbc9ea in __GI_exit (status=<optimized out>)
                       at exit.c:139
#13 0x00007ffff7fc1616 in clean_child_exit (code=0)
                       at event.c:774
                                  ^ pchild already destroyed here
#14 0x00007ffff7fc5ae4 in child_main (child_num_arg=0, child_bucket=0)
                       at event.c:2869
...

While at it, add comments about the lifetimes of MPMs pools and their objects,
and give each pool a tag (e.g. "pchild" accordingly to other MPMs).

(follow up for event_pollset in r1835846).

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

5 years agoExplain the limitation of <IfFile> with a filename with surrounding quotes in 2.4.34.
Christophe Jaillet [Thu, 12 Jul 2018 18:50:24 +0000 (18:50 +0000)]
Explain the limitation of <IfFile> with a filename with surrounding quotes in 2.4.34.

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

5 years agoAdding html files after doc rebuild ; why did I have to do that ?
Lucien Gentis [Thu, 12 Jul 2018 15:30:52 +0000 (15:30 +0000)]
Adding html files after doc rebuild ; why did I have to do that ?

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

5 years agoVersionning manual/platform/windows.html.fr.
Lucien Gentis [Thu, 12 Jul 2018 15:20:33 +0000 (15:20 +0000)]
Versionning manual/platform/windows.html.fr.

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

5 years agogit-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1835746 13f79535-47bb...
Lucien Gentis [Thu, 12 Jul 2018 15:07:24 +0000 (15:07 +0000)]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1835746 13f79535-47bb-0310-9956-ffa450edef68

5 years agogit-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1835744 13f79535-47bb...
Lucien Gentis [Thu, 12 Jul 2018 14:46:05 +0000 (14:46 +0000)]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1835744 13f79535-47bb-0310-9956-ffa450edef68

5 years agoRebuild.
Lucien Gentis [Thu, 12 Jul 2018 13:59:08 +0000 (13:59 +0000)]
Rebuild.

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

5 years agoWML update.
Lucien Gentis [Thu, 12 Jul 2018 13:58:16 +0000 (13:58 +0000)]
WML update.

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

5 years agoRebuild.
Lucien Gentis [Thu, 12 Jul 2018 13:52:21 +0000 (13:52 +0000)]
Rebuild.

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

5 years agoNew french translation.
Lucien Gentis [Thu, 12 Jul 2018 13:50:29 +0000 (13:50 +0000)]
New french translation.

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

5 years agoRebuild.
Lucien Gentis [Thu, 12 Jul 2018 13:08:34 +0000 (13:08 +0000)]
Rebuild.

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

5 years agoRebuild (with 8 bits characters replaced by their HTML entities because -Xbootclasspa...
Lucien Gentis [Thu, 12 Jul 2018 13:05:22 +0000 (13:05 +0000)]
Rebuild (with 8 bits characters replaced by their HTML entities because -Xbootclasspath/p option disabled in build.sh script because it is no more supported in openjdk 10)

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

5 years agoXML update.
Lucien Gentis [Thu, 12 Jul 2018 12:25:03 +0000 (12:25 +0000)]
XML update.

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

5 years agoutil_filter: keep filters with aside buckets in order.
Yann Ylavic [Wed, 11 Jul 2018 13:03:35 +0000 (13:03 +0000)]
util_filter: keep filters with aside buckets in order.

Read or write of filter's pending data must happen in the same order as the
filter chain, thus we can't use an apr_hash_t to maintain the pending filters
since it provides no garantee on this matter.

Instead use an APR_RING maintained in c->pending_filters, and since both the
name (was c->filters) and the type changed, MAJOR is bumped (trunk only code
anyway so far).

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

5 years ago* modules/ssl/ssl_engine_pphrase.c (modssl_load_engine_keypair): Load
Joe Orton [Wed, 11 Jul 2018 07:46:08 +0000 (07:46 +0000)]
* modules/ssl/ssl_engine_pphrase.c (modssl_load_engine_keypair): Load
  the engine associated with the private key (&cert) explicitly
  rather than requiring the engine to be set as the default method
  for all operations (with "SSLCryptoDevice <engine>").

(Thanks to Anderson Sasaki <ansasaki redhat.com> for suggested
improvement and guidance)

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

5 years agoUpdate docs and bump logno for PKCS#11 support change in r1835615.
Joe Orton [Wed, 11 Jul 2018 07:45:57 +0000 (07:45 +0000)]
Update docs and bump logno for PKCS#11 support change in r1835615.

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

5 years ago* acinclude.m4 (APACHE_GEN_MAKEFILES): Respect configure --quiet by
Joe Orton [Tue, 10 Jul 2018 15:58:27 +0000 (15:58 +0000)]
* acinclude.m4 (APACHE_GEN_MAKEFILES): Respect configure --quiet by
  sending fastgen output to the appropriate fd.

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

5 years agoXML update.
Lucien Gentis [Sat, 7 Jul 2018 14:48:29 +0000 (14:48 +0000)]
XML update.

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

5 years agoReview by popcorner with further edits by both CodeingBoy and popcorner,
William A. Rowe Jr [Fri, 6 Jul 2018 21:56:50 +0000 (21:56 +0000)]
Review by popcorner with further edits by both CodeingBoy and popcorner,
their discussion at https://github.com/popcorner/chect/pull/1

Added CONTENT_LANGUAGE variable for both translations.

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

5 years ago* modules/ssl/ssl_engine_pphrase.c: Add logno tags.
Joe Orton [Fri, 6 Jul 2018 12:03:27 +0000 (12:03 +0000)]
* modules/ssl/ssl_engine_pphrase.c: Add logno tags.

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

5 years agoHook up PKCS#11 PIN entry through configured passphrase entry method.
Joe Orton [Fri, 6 Jul 2018 12:01:29 +0000 (12:01 +0000)]
Hook up PKCS#11 PIN entry through configured passphrase entry method.

* modules/ssl/ssl_engine_pphrase.c: Add wrappers for OpenSSL UI * API
  around passphrase entry.
  (modssl_load_engine_keypair): Take vhost ID and use above rather than
  default OpenSSL UI.

* modules/ssl/ssl_engine_init.c (ssl_init_server_certs): Pass vhost ID.

Submitted by: Anderson Sasaki<ansaski redhat.com>, jorton

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

5 years agoXML update.
Lucien Gentis [Thu, 5 Jul 2018 15:53:10 +0000 (15:53 +0000)]
XML update.

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

5 years agoXML updates.
Lucien Gentis [Thu, 5 Jul 2018 14:51:21 +0000 (14:51 +0000)]
XML updates.

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

5 years agoOn the trunk:
Stefan Eissing [Thu, 5 Jul 2018 10:21:00 +0000 (10:21 +0000)]
On the trunk:

 * silencing gcc uninitialized warning
 * refrainning from apr_table_addn() use since pool debug assumptions are in conflict
 * adding more assertions
 * copy-porting changes to base64 encoding code from mod_md

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

5 years agoOn the trunk:
Stefan Eissing [Thu, 5 Jul 2018 10:18:46 +0000 (10:18 +0000)]
On the trunk:

Silencing a gcc uninitialized warning.

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

6 years agoglobal ap_server_conf must be reset when process->pconf is cleared
Eric Covener [Thu, 5 Jul 2018 02:33:34 +0000 (02:33 +0000)]
global ap_server_conf must be reset when process->pconf is cleared

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

6 years agoRebuild.
Lucien Gentis [Tue, 3 Jul 2018 09:22:09 +0000 (09:22 +0000)]
Rebuild.

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

6 years agoXML updates.
Lucien Gentis [Tue, 3 Jul 2018 09:21:10 +0000 (09:21 +0000)]
XML updates.

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

6 years agobackported
Eric Covener [Mon, 2 Jul 2018 20:49:25 +0000 (20:49 +0000)]
backported

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

6 years agoSynch with 2.4.x
Christophe Jaillet [Fri, 29 Jun 2018 16:33:53 +0000 (16:33 +0000)]
Synch with 2.4.x

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

6 years agoBe more consistent on how we display the paramters of a directive
Christophe Jaillet [Fri, 29 Jun 2018 16:31:34 +0000 (16:31 +0000)]
Be more consistent on how we display the paramters of a directive

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

6 years agomod_md: more robust handling of http-01 challenges and hands-off when module
Stefan Eissing [Fri, 29 Jun 2018 10:52:07 +0000 (10:52 +0000)]
mod_md: more robust handling of http-01 challenges and hands-off when module
     should not be involved, e.g. challenge setup by another ACME client.

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

6 years agoRegenerate.
Joe Orton [Fri, 29 Jun 2018 10:39:05 +0000 (10:39 +0000)]
Regenerate.

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

6 years agoFollow up to r1833368: apr_crypto_prng_after_fork() changed its args.
Yann Ylavic [Wed, 27 Jun 2018 22:29:53 +0000 (22:29 +0000)]
Follow up to r1833368: apr_crypto_prng_after_fork() changed its args.

Once again :p

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

6 years agodocumentation rebuild
Luca Toscano [Wed, 27 Jun 2018 17:49:33 +0000 (17:49 +0000)]
documentation rebuild

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

6 years agomod_proxy.xml: add vhost/server contextes for ProxySet
Luca Toscano [Wed, 27 Jun 2018 17:49:17 +0000 (17:49 +0000)]
mod_proxy.xml: add vhost/server contextes for ProxySet

While reading PR 62422 I noticed that ProxySet's available
contextes list only 'directory', that looks odd:

AP_INIT_RAW_ARGS("ProxySet", set_proxy_param, NULL, RSRC_CONF|ACCESS_CONF

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

6 years agoAllow openssl.pc to be in lib64 (like other components).
Jean-Frederic Clere [Wed, 27 Jun 2018 12:15:32 +0000 (12:15 +0000)]
Allow openssl.pc to be in lib64 (like other components).

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