]> granicus.if.org Git - apache/log
apache
7 years agoOn the trunk:
Stefan Eissing [Wed, 16 Aug 2017 12:35:49 +0000 (12:35 +0000)]
On the trunk:

mod_ssl.xml: completing descriptions and proper section name use.

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

7 years agoadded SSLPolicy to sections
Stefan Eissing [Wed, 16 Aug 2017 12:23:23 +0000 (12:23 +0000)]
added SSLPolicy to sections

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

7 years agoOn the trunk:
Stefan Eissing [Wed, 16 Aug 2017 12:22:28 +0000 (12:22 +0000)]
On the trunk:

mod_ssl: adding SSLPolicy and SSLProxyPolicy directives plus documentation.

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

7 years agofixing empty section
Stefan Eissing [Wed, 16 Aug 2017 11:55:36 +0000 (11:55 +0000)]
fixing empty section

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

7 years agomod_md.xml transforms, added ManagedDomain to sections
Stefan Eissing [Wed, 16 Aug 2017 11:53:35 +0000 (11:53 +0000)]
mod_md.xml transforms, added ManagedDomain to sections

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

7 years agoFix typo in log message.
Joe Orton [Wed, 16 Aug 2017 09:50:39 +0000 (09:50 +0000)]
Fix typo in log message.

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

7 years agoFix ProxyAddHeaders merging.
Joe Orton [Tue, 15 Aug 2017 16:54:22 +0000 (16:54 +0000)]
Fix ProxyAddHeaders merging.

* modules/proxy/mod_proxy.h:
  Add add_forwarded_headers_set field to proxy_dir_conf.

* modules/proxy/mod_proxy.c (create_proxy_dir_config, ):
  Initialize add_forwarded_headers_set.
  (add_proxy_http_headers): Set it.
  (merge_proxy_dir_config): Merge add_forwarded_headers correctly.

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

7 years agomod_md.xml: add some links and fix some details
Luca Toscano [Mon, 14 Aug 2017 10:13:50 +0000 (10:13 +0000)]
mod_md.xml: add some links and fix some details

The transformation document is still not available
since build.sh fails. More info in my last email
thread in docs@ for whoever is interested.

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

7 years agoOn the trunk:
Stefan Eissing [Fri, 11 Aug 2017 13:04:29 +0000 (13:04 +0000)]
On the trunk:

mod_md: some internal refactoring of config/sectio handling

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

7 years agoDefined constants for md config directives.
Stefan Eissing [Fri, 11 Aug 2017 08:39:31 +0000 (08:39 +0000)]
Defined constants for md config directives.

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

7 years agofix for <ManagedDomain sections with inner <If or other sections
Stefan Eissing [Thu, 10 Aug 2017 13:58:26 +0000 (13:58 +0000)]
fix for <ManagedDomain sections with inner <If or other sections

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

7 years agostart of a howto to set up encryption using mod_md
Stefan Eissing [Thu, 10 Aug 2017 13:39:07 +0000 (13:39 +0000)]
start of a howto to set up encryption using mod_md

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

7 years agomod_md: more documentation
Stefan Eissing [Wed, 9 Aug 2017 15:27:37 +0000 (15:27 +0000)]
mod_md: more documentation

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

7 years agomod_md documentation
Stefan Eissing [Wed, 9 Aug 2017 15:19:34 +0000 (15:19 +0000)]
mod_md documentation

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

7 years agolog tags for mod_ssl changes and new mod_md
Stefan Eissing [Wed, 9 Aug 2017 13:59:26 +0000 (13:59 +0000)]
log tags for mod_ssl changes and new mod_md

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

7 years agoOn the trunk:
Stefan Eissing [Wed, 9 Aug 2017 13:57:33 +0000 (13:57 +0000)]
On the trunk:

mod_md: new module for managing domains across VirtualHosts

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

7 years agomod_md: v0.6.1 from github trunk-md trunk-md
Stefan Eissing [Wed, 9 Aug 2017 13:43:26 +0000 (13:43 +0000)]
mod_md: v0.6.1 from github

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

7 years agomod_md: v0.6.0 from github
Stefan Eissing [Tue, 8 Aug 2017 13:50:20 +0000 (13:50 +0000)]
mod_md: v0.6.0 from github

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

7 years agomod_ssl uses now mod_md header file for optional function declaration
Stefan Eissing [Tue, 8 Aug 2017 13:33:45 +0000 (13:33 +0000)]
mod_ssl uses now mod_md header file for optional function declaration

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

7 years agoadding a2md build to modules/md, installed in bin
Stefan Eissing [Tue, 8 Aug 2017 12:08:42 +0000 (12:08 +0000)]
adding a2md build to modules/md, installed in bin

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

7 years agobuilding separate lib and static linking it into mod_md
Stefan Eissing [Tue, 8 Aug 2017 11:37:48 +0000 (11:37 +0000)]
building separate lib and static linking it into mod_md

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

7 years agofirst configure+compile version
Stefan Eissing [Fri, 4 Aug 2017 13:47:25 +0000 (13:47 +0000)]
first configure+compile version

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

7 years agobumping version, removing some unused code, fixes in base64url from mod_md
Stefan Eissing [Fri, 4 Aug 2017 11:03:08 +0000 (11:03 +0000)]
bumping version, removing some unused code, fixes in base64url from mod_md

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

7 years agomod_http2: non-dev version for backport
Stefan Eissing [Fri, 4 Aug 2017 10:15:14 +0000 (10:15 +0000)]
mod_http2: non-dev version for backport

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

7 years agobranch for integrating mod_md into trunk
Stefan Eissing [Fri, 4 Aug 2017 09:52:04 +0000 (09:52 +0000)]
branch for integrating mod_md into trunk

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

7 years agoRebuild.
Lucien Gentis [Tue, 1 Aug 2017 15:37:03 +0000 (15:37 +0000)]
Rebuild.

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

7 years agoXML updates.
Lucien Gentis [Tue, 1 Aug 2017 15:35:41 +0000 (15:35 +0000)]
XML updates.

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

7 years agomod_http2: signalling produce IO before waiting on beam buffer to drain.
Stefan Eissing [Sun, 30 Jul 2017 18:54:15 +0000 (18:54 +0000)]
mod_http2: signalling produce IO before waiting on beam buffer to drain.

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

7 years agomod_http2: version bump, partial fix for stream response getting stuck, see https...
Stefan Eissing [Sun, 30 Jul 2017 11:57:35 +0000 (11:57 +0000)]
mod_http2: version bump, partial fix for stream response getting stuck, see https://github.com/icing/mod_h2/issues/143

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

7 years agoFollow up to r1803396: CHANGES entry.
Yann Ylavic [Sat, 29 Jul 2017 23:21:58 +0000 (23:21 +0000)]
Follow up to r1803396: CHANGES entry.

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

7 years agomod_ssl, ab: compatibility with LibreSSL. PR 61184.
Yann Ylavic [Sat, 29 Jul 2017 23:05:02 +0000 (23:05 +0000)]
mod_ssl, ab: compatibility with LibreSSL.  PR 61184.

LibreSSL defines OPENSSL_VERSION_NUMBER = 2.0, but is not compatible with
all of the latest OpenSSL 1.1 API.

Address this by defining MODSSL_USE_OPENSSL_PRE_1_1_API which is true for
anything but OpenSSL >= 1.1 (for now).

Proposed by: Bernard Spil <brnrd freebsd.org>
Reviewed by: ylavic

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

7 years agomod_ssl: we can't use SSL_COMP_free_compression_methods() if OPENSSL_NO_COMP
Yann Ylavic [Sat, 29 Jul 2017 20:35:56 +0000 (20:35 +0000)]
mod_ssl: we can't use SSL_COMP_free_compression_methods() if OPENSSL_NO_COMP
is defined.  PR 61206.

Submitted by: Michael Schlenker <msc contact.de>

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

7 years agoxforms
Eric Covener [Fri, 28 Jul 2017 17:46:12 +0000 (17:46 +0000)]
xforms

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

7 years agocross link some balancer directives across proxy mods
Eric Covener [Fri, 28 Jul 2017 17:45:35 +0000 (17:45 +0000)]
cross link some balancer directives across proxy mods

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

7 years agoDoc rebuild (reverts r1802703)
Luca Toscano [Fri, 28 Jul 2017 17:16:47 +0000 (17:16 +0000)]
Doc rebuild (reverts r1802703)

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

7 years agomod_proxy doc rebuild
Luca Toscano [Fri, 28 Jul 2017 09:14:34 +0000 (09:14 +0000)]
mod_proxy doc rebuild

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

7 years agomod_proxy.xml: mention DNS caching when reusing backend connection
Luca Toscano [Fri, 28 Jul 2017 09:10:37 +0000 (09:10 +0000)]
mod_proxy.xml: mention DNS caching when reusing backend connection

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

7 years agoClarify some mod_proxy concepts in the docs
Luca Toscano [Thu, 27 Jul 2017 12:30:20 +0000 (12:30 +0000)]
Clarify some mod_proxy concepts in the docs

I have recently got some basic mod-proxy concepts
and these simple info would have helped me a lot:

- connection pooling == reuse. My brain did not pick
  up this simple nomenclature at first read for some
  reason, probably because we have parameters called
  "*reuse*" and not "*pooling*". I find the term
  "reuse" clearer than "pooling", but this is
  debatable :)
- the concept of "Worker" needs to be read before
  the ProxyPass section (that people probably read
  directly after checking a search engine) to fully
  understand its power.
- the fact that a worker is related to a single process
  (and not shared as a Balancer) is a really important
  concept that I tried to highlight when talking
  about maxconns (question popped up a lot of times
  from users).

Hope that my understanding is correct, feedback is welcome.

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

7 years agoevent: Avoid possible blocking in the listener thread when shutting down
Yann Ylavic [Mon, 24 Jul 2017 23:19:06 +0000 (23:19 +0000)]
event: Avoid possible blocking in the listener thread when shutting down
connections. PR 60956.

start_lingering_close_nonblocking() now puts connections in defer_linger_chain
which is emptied by any worker thread (all atomically) after its usual work,
hence any possibly blocking flush and lingering close run outside the listener.

The listener may create a dedicated worker if it fills defer_linger_chain or
while it's not empty, calling push2worker with a NULL cs.

The state machine in process_socket() is slighly modified to be able to enter
with CONN_STATE_LINGER directly w/o clogging_input_filters to interfer.

New abort_socket_nonblocking() allows to reset connections when nonblocking is
required and we can't do much about the connection anymore, nor we want the
system to linger on its own after close().

Many thanks to Stefan Priebe for his heavy testing on many event's changes!

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

7 years agoMake sure updatelbstatus() is NULL
Jim Jagielski [Mon, 24 Jul 2017 17:19:55 +0000 (17:19 +0000)]
Make sure updatelbstatus() is NULL

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

7 years agoRebuild.
Lucien Gentis [Sat, 22 Jul 2017 15:31:35 +0000 (15:31 +0000)]
Rebuild.

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

7 years agoXML updates.
Lucien Gentis [Sat, 22 Jul 2017 15:30:37 +0000 (15:30 +0000)]
XML updates.

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

7 years agocore, mpm_event: Add ap_update_sb_handle() to avoid a small memory leak of
Yann Ylavic [Fri, 21 Jul 2017 17:22:05 +0000 (17:22 +0000)]
core, mpm_event: Add ap_update_sb_handle() to avoid a small memory leak of
sizeof(ap_sb_handle_t) when re-entering event's process_socket().

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

7 years agompm_event: ap_queue_info_try_get_idler() may atomically decrement and then
Yann Ylavic [Thu, 20 Jul 2017 23:34:47 +0000 (23:34 +0000)]
mpm_event: ap_queue_info_try_get_idler() may atomically decrement and then
re-increment the number idlers if it went under or to zero.  We can avoid
this by switching to a compare-and-swap scheme.

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

7 years agoreserve 10036
Jim Jagielski [Wed, 19 Jul 2017 14:49:38 +0000 (14:49 +0000)]
reserve 10036

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

7 years agoupdate xforms
Jim Jagielski [Tue, 18 Jul 2017 21:01:55 +0000 (21:01 +0000)]
update xforms

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

7 years agoUDS does support reuse
Jim Jagielski [Tue, 18 Jul 2017 21:00:14 +0000 (21:00 +0000)]
UDS does support reuse

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

7 years agoap_server_config_defines and ap_server_{pre,post}_read_config are arrays of
Yann Ylavic [Tue, 18 Jul 2017 15:06:15 +0000 (15:06 +0000)]
ap_server_config_defines and ap_server_{pre,post}_read_config are arrays of
*const* strings (must not change after being inserted), make it explicit.

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

7 years agoBe explicit and safe (const) with the strings stored in ap_server_config_defines.
Yann Ylavic [Tue, 18 Jul 2017 14:41:43 +0000 (14:41 +0000)]
Be explicit and safe (const) with the strings stored in ap_server_config_defines.

Follow up to r1713043.

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

7 years agoFix overriding ExtendedStatus to "off" with mod_systemd loaded, and
Joe Orton [Tue, 18 Jul 2017 08:14:42 +0000 (08:14 +0000)]
Fix overriding ExtendedStatus to "off" with mod_systemd loaded, and
give more feedback to systemd during a reload.

* modules/arch/unix/mod_systemd.c (systemd_pre_config): New
  function; tell systemd the service is reloading here.
  (systemd_pre_mpm): Don't set ap_extended_status here, do nothing
  if ExtendedStatus is off.
  (register_hooks): Register pre_config hook.

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

7 years agomod-proxy documentation rebuild
Luca Toscano [Sun, 16 Jul 2017 16:05:07 +0000 (16:05 +0000)]
mod-proxy documentation rebuild

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

7 years agoUpdated files referencing Spanish translation for manual/misc/index.xml.es r1802071
Daniel Ferradal [Sun, 16 Jul 2017 15:36:33 +0000 (15:36 +0000)]
Updated files referencing Spanish translation for manual/misc/index.xml.es r1802071

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

7 years agoAdded Spanish Translation for manual/misc/index.xml.es
Daniel Ferradal [Sun, 16 Jul 2017 15:35:05 +0000 (15:35 +0000)]
Added Spanish Translation for manual/misc/index.xml.es

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

7 years agoUpdated files referencing Spanish translation for manual/misc/perf-scaling.xml.es...
Daniel Ferradal [Sun, 16 Jul 2017 15:15:16 +0000 (15:15 +0000)]
Updated files referencing Spanish translation for manual/misc/perf-scaling.xml.es r1802068

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

7 years agoAdded Spanish Translation for manual/misc/perf-scaling.xml.es
Daniel Ferradal [Sun, 16 Jul 2017 15:13:13 +0000 (15:13 +0000)]
Added Spanish Translation for manual/misc/perf-scaling.xml.es

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

7 years agoAdded Updates to Extra files referencing Spanish translation for manual/misc/password...
Daniel Ferradal [Sun, 16 Jul 2017 14:51:11 +0000 (14:51 +0000)]
Added Updates to Extra files referencing Spanish translation for manual/misc/password_encryptions.xml.es r1802066

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

7 years agoAdded Spanish translation for manual/misc/password_encryptions.xml.es
Daniel Ferradal [Sun, 16 Jul 2017 14:49:08 +0000 (14:49 +0000)]
Added Spanish translation for manual/misc/password_encryptions.xml.es

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

7 years agoUpdated Spanish translation for manual/howto/reverse_proxy.xml.es
Daniel Ferradal [Sun, 16 Jul 2017 14:39:21 +0000 (14:39 +0000)]
Updated Spanish translation for manual/howto/reverse_proxy.xml.es

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

7 years agoAdded Extra Files referencing Spanish translation for manual/howto/ssi.xml.es r1802060
Daniel Ferradal [Sun, 16 Jul 2017 14:18:21 +0000 (14:18 +0000)]
Added Extra Files referencing Spanish translation for manual/howto/ssi.xml.es r1802060

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

7 years agoAdded Spanish translation for manual/howto/ssi.xml.es
Daniel Ferradal [Sun, 16 Jul 2017 14:15:22 +0000 (14:15 +0000)]
Added Spanish translation for manual/howto/ssi.xml.es

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

7 years agoAdded Extra Files referencing Spanish translation for manual/mod/mod_auth_basic.xml...
Daniel Ferradal [Sun, 16 Jul 2017 11:11:51 +0000 (11:11 +0000)]
Added Extra Files referencing Spanish translation for manual/mod/mod_auth_basic.xml.es r1802042

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

7 years agoAdded Spanish translation for manual/mod/mod_auth_basic.xml.es
Daniel Ferradal [Sun, 16 Jul 2017 11:08:27 +0000 (11:08 +0000)]
Added Spanish translation for manual/mod/mod_auth_basic.xml.es

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

7 years agomod_proxy_fcgi: Add the support for mod_proxy's
Luca Toscano [Sun, 16 Jul 2017 08:40:46 +0000 (08:40 +0000)]
mod_proxy_fcgi: Add the support for mod_proxy's
                flushpackets and flushwait params

This change was requested on the development mailing
list in order to fill another gap between mod_fcgi
and mod_proxy_fcgi, namely the -flush funtionality.

The more evolved core trunk code would not need this
feature becuse of the non-blocking writes, but it
is be needed in 2.4.x.

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

7 years agohttpdunit: merge CVE-2017-9788 regression tests from feature branch
Jacob Champion [Fri, 14 Jul 2017 22:33:45 +0000 (22:33 +0000)]
httpdunit: merge CVE-2017-9788 regression tests from feature branch

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

7 years agoCVE-2017-9788: add unit tests for get_digest_rec() httpdunit httpdunit
Jacob Champion [Fri, 14 Jul 2017 22:30:17 +0000 (22:30 +0000)]
CVE-2017-9788: add unit tests for get_digest_rec()

Including the module source is a dirty hack, but maybe the direct way is
best for now. More functional tests are still TODO.

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

7 years agoFollow up to r1801994: CHANGES' PR reference.
Yann Ylavic [Fri, 14 Jul 2017 22:28:38 +0000 (22:28 +0000)]
Follow up to r1801994: CHANGES' PR reference.

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

7 years agoFollow up to r1754164: CHANGES entry.
Yann Ylavic [Fri, 14 Jul 2017 22:21:05 +0000 (22:21 +0000)]
Follow up to r1754164: CHANGES entry.

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

7 years agoAdded other modified files referencing Spanish translation for mod_asis.xml.es r1801894
Daniel Ferradal [Thu, 13 Jul 2017 22:15:39 +0000 (22:15 +0000)]
Added other modified files referencing Spanish translation for mod_asis.xml.es r1801894

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

7 years agoAdded new Spanish translation for mod_asis.xml.es
Daniel Ferradal [Thu, 13 Jul 2017 22:11:09 +0000 (22:11 +0000)]
Added new Spanish translation for mod_asis.xml.es

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

7 years agompm_winnt: Do not redefine the standard CONTAINING_RECORD() macro
Evgeny Kotkov [Wed, 12 Jul 2017 16:49:14 +0000 (16:49 +0000)]
mpm_winnt: Do not redefine the standard CONTAINING_RECORD() macro
in child.c.

This definition has been added in https://svn.apache.org/r88498 — perhaps,
because not every versions of SDK contained it at that time.

But since then, the macro has been available starting from Windows 2000
(https://msdn.microsoft.com/en-us/library/windows/hardware/ff542043),
and any available version of Windows SDK now should also contain it.

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

7 years agompm_winnt: Remove an obsolete comment in child.c explaining why the
Evgeny Kotkov [Wed, 12 Jul 2017 16:16:17 +0000 (16:16 +0000)]
mpm_winnt: Remove an obsolete comment in child.c explaining why the
declarations of the structures and functions to access the completion
contexts reside in a header file.

This no longer holds, as all the necessary functions and structures are
located in the single .c file (child.c).

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

7 years agompm_winnt: Tweak the names of the variables in child.c which are used to
Evgeny Kotkov [Wed, 12 Jul 2017 16:12:21 +0000 (16:12 +0000)]
mpm_winnt: Tweak the names of the variables in child.c which are used to
represent a queue of the completion contexts.

Starting from r1801655, the "queue" isn't really a queue, as all the
access happens with a LIFO order. So, instead of that, call it a "pool
of completion contexts", adjust names of all relevant variables and
tweak the comments.

This patch changes
  - qlock to ctxpool_lock,
  - qhead to ctxpool_head, and
  - qwait_event to ctxpool_wait_event.

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

7 years agompm_winnt: Tweak the listener shutdown code to use a separate event
Evgeny Kotkov [Wed, 12 Jul 2017 16:02:39 +0000 (16:02 +0000)]
mpm_winnt: Tweak the listener shutdown code to use a separate event
instead of the global variable (shutdown_in_progress).

This change has two purposes.  First of all, it makes the listener threads
which are blocked waiting for a completion context exit immediately during
shutdown.  Previously, such threads would only check for exit every second.
The second reason for this change is to put the child_main() function in
charge of controlling the listeners life cycle.  Previously, such relation
was circumvented by the fact that the listeners were also waiting for the
global child exit_event.  With the new separate listener_shutdown_event,
only the child_main() function is responsible for shutting down the
listeners, and I think that this makes the code a bit clearer.

All the original behavior, including the special APLOG_DEBUG diagnostic
message when we fail to acquire a free completion context in 1 second,
is kept unchanged.

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

7 years agompm_winnt: Following up on r1801655, add a comment that explains the
Evgeny Kotkov [Wed, 12 Jul 2017 09:47:36 +0000 (09:47 +0000)]
mpm_winnt: Following up on r1801655, add a comment that explains the
reason to choose the LIFO processing order for completion contexts.

It would be better to keep this important information in the code, instead
of just having it in the log message.

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

7 years agoMakefile.in: merge typo fix from test-integration branch
Jacob Champion [Wed, 12 Jul 2017 00:13:55 +0000 (00:13 +0000)]
Makefile.in: merge typo fix from test-integration branch

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

7 years agoMakefile.in: fix MPM_MODULES typo (in check-conf) trunk-test-integration trunk-test-integration
Jacob Champion [Wed, 12 Jul 2017 00:10:11 +0000 (00:10 +0000)]
Makefile.in: fix MPM_MODULES typo (in check-conf)

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

7 years agoMakefile.in: fix MPM_MODULES typo
Jacob Champion [Wed, 12 Jul 2017 00:07:08 +0000 (00:07 +0000)]
Makefile.in: fix MPM_MODULES typo

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

7 years agompm_winnt: Advertise support for preshutdown notifications in the service,
Evgeny Kotkov [Tue, 11 Jul 2017 21:39:35 +0000 (21:39 +0000)]
mpm_winnt: Advertise support for preshutdown notifications in the service,
and perform shutdown in respond to SERVICE_CONTROL_PRESHUTDOWN.

The pure shutdown notification leaves a small amount of time for the service
to finish (and the allowed amount of time has been shrinking with every new
version of Windows), and handling only it increases the chance of the process
being killed by SCM, instead of gracefully shutting down.  Handling the
preshutdown control code extends this period, and increases the chances of
finishing everything properly when the machine is rebooted or shut down.

(See https://msdn.microsoft.com/en-us/library/windows/desktop/ms683241)

Please note that although the preshutdown notifications are available only
starting from Windows Vista, the code is compatible with the previous versions
of Windows, since the SCM ignores unknown SERVICE_ACCEPT codes, and will
still send an ordinary SERVICE_CONTROL_SHUTDOWN under old Windows
versions.

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

7 years agompm_winnt: Remove unused values of the io_state_e enum.
Evgeny Kotkov [Tue, 11 Jul 2017 21:13:26 +0000 (21:13 +0000)]
mpm_winnt: Remove unused values of the io_state_e enum.

Submitted By: Ivan Zhakov <ivan {at} visualsvn.com>

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

7 years agompm_winnt: Remove a duplicated comment in the child_main() function.
Evgeny Kotkov [Tue, 11 Jul 2017 21:09:29 +0000 (21:09 +0000)]
mpm_winnt: Remove a duplicated comment in the child_main() function.

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

7 years agompm_winnt: Use a LIFO stack instead of a FIFO queue to hold unused
Evgeny Kotkov [Tue, 11 Jul 2017 21:07:45 +0000 (21:07 +0000)]
mpm_winnt: Use a LIFO stack instead of a FIFO queue to hold unused
completion contexts, as that may significantly reduce the memory usage.

This simple change can have a noticeable impact on the amount of memory
consumed by the child process in various cases.  Every completion context
in the queue has an associated allocator, and every allocator has it's
ap_max_mem_free memory limit which is not given back to the operating
system.  Once the queue grows, it cannot shrink back, and every allocator
in each of the queued completion contexts keeps up to its max_free amount
of memory.  The queue can only grow when a server has to serve multiple
concurrent connections at once.

With that in mind, consider a case with a server that doesn't encounter many
concurrent connections most of the time, but has occasional spikes when
it has to serve multiple concurrent connections.  During such spikes, the
size of the completion context queue grows.

The actual difference between using LIFO and FIFO orders shows up after
such spikes, when the server is back to light load and doesn't see a lot
of concurrency.  With FIFO order, every completion context in the queue
will be used in a round-robin manner, thus using *every* available allocator
one by one and ultimately claiming up to (N * ap_max_mem_free memory) from
the OS.  With LIFO order, only the completion contexts that are close to
the top of the stack will be used and reused for subsequent connections.
Hence, only a small part of the allocators will be used, and this can
prevent all other allocators from unnecessarily acquiring memory from
the OS (and keeping it), and this reduces the overall memory footprint.

Please note that this change doesn't affect the worst case behavior, as
it's still (N * ap_max_mem_free memory), but tends to behave better in
practice, for the reasons described above.

Another thing worth considering is the new behavior when the OS decides
to swap out pages of the child process, for example, in a close-to-OOM
condition.  Handling every new connection after the swap requires the OS
to load the memory pages for the allocator from the completion context that
is used for this connection.  With FIFO order, the completion contexts are
used one by one, and this would cause page loads for every new connection.
With LIFO order, there will be almost no swapping, since the same completion
context is going to be reused for subsequent new connections.

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

7 years agompm_winnt: Drop the APLOG_DEBUG diagnostic saying how many thread
Evgeny Kotkov [Tue, 11 Jul 2017 17:45:55 +0000 (17:45 +0000)]
mpm_winnt: Drop the APLOG_DEBUG diagnostic saying how many thread
are blocked on the I/O completion port during the shutdown.

Prior to r1801635, the shutdown code required to know the amount of blocked
threads, as it has been dispatching the same amount of completion packets.
But this no longer holds, and the only reason why we maintain the
corresponding g_blocked_threads variable is because of this debug
diagnostic message.

Drop it in order to reduce complexity of the quite critical code in the
winnt_get_connection() function and to reduce the amount of global
variables.

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

7 years agompm_winnt: Remove an unnecessary Sleep() in the winnt_accept() function.
Evgeny Kotkov [Tue, 11 Jul 2017 17:16:49 +0000 (17:16 +0000)]
mpm_winnt: Remove an unnecessary Sleep() in the winnt_accept() function.

This sleep occured in a situation when:

 - We don't have a free completion context in the queue
 - We can't add one, as doing so would exceed the max_num_completion_contexts
   limit (all worker threads are busy)
 - We have exceeded a 1 second timeout while waiting for it

In this case, the Sleep() call is unnecessary, as there is no intermittent
failure that can be waited out, but rather than that, it's an ordinary
situation with all workers being busy.  Presumably, calling Sleep() here
can be even considered harmful, as it affects the fairness between the
listeners that are blocked waiting for the completion context.

So, instead of calling Sleep() just check for the possible shutdown and
immediately retry acquiring a completion context.  If all worker threads
are still busy, the retry will block in the same WaitForSingleObject() call,
which is fine.

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

7 years agompm_winnt: Simplify the shutdown code that was waiting for multiple worker
Evgeny Kotkov [Tue, 11 Jul 2017 16:51:09 +0000 (16:51 +0000)]
mpm_winnt: Simplify the shutdown code that was waiting for multiple worker
thread handles in batches.

Starting from r1801636, there is no difference between ending the wait with
one or multiple remaining threads.  This is because we terminate the process
if at least one thread is still active when we hit a timeout.

Therefore, instead of making an effort to evenly distribute and batch the
handles with WaitForMultipleObjects(), we could just start from one end,
and wait for one thread handle at a time.

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

7 years agompm_winnt: Avoid using TerminateThread() in case the shutdown routine
Evgeny Kotkov [Tue, 11 Jul 2017 16:46:47 +0000 (16:46 +0000)]
mpm_winnt: Avoid using TerminateThread() in case the shutdown routine
hits a timeout while waiting for the worker threads to exit.

Using TerminateThread() can have dangerous consequences such as deadlocks —
say, if the the thread is terminated while holding a lock or a heap lock
in the middle of HeapAlloc(), as these locks would not be released.
Or it can corrupt the application state and cause a crash.

(See https://msdn.microsoft.com/en-us/library/windows/desktop/ms686717)

Rework the code to call TerminateProcess() in the described circumstances
and leave the cleanup to the operating system.

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

7 years agompm_winnt: Make the shutdown faster by avoiding unnecessary Sleep()'s
Evgeny Kotkov [Tue, 11 Jul 2017 16:41:51 +0000 (16:41 +0000)]
mpm_winnt: Make the shutdown faster by avoiding unnecessary Sleep()'s
when shutting down the worker threads.

Previously, the shutdown code was posting an amount of I/O completion
packets equal to the amount of the threads blocked on the I/O completion
port.  Then it would Sleep() until all these threads "acknowledge" the
completion packets by decrementing the global amount of blocked threads.

A better way would be to send the number of IOCP_SHUTDOWN completion
packets equal to the total amount of threads and immediately proceed to
the next step.  There is no need to block until the threads actually receive
the completion, as the shutdown process includes a separate step that waits
until the threads exit, and the new approach avoids an unnecessary delay.

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

7 years agoAdd logic to read the Upgrade header and use it in the response.
Jean-Frederic Clere [Tue, 11 Jul 2017 11:41:44 +0000 (11:41 +0000)]
Add logic to read the Upgrade header and use it in the response.
Use we you are proxying to a server that has multiple upgrade on the same IP/Port.
PR 61142

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

7 years agompm_winnt: Following up on r1801144, use the new accept_filter_e enum
Evgeny Kotkov [Mon, 10 Jul 2017 12:22:31 +0000 (12:22 +0000)]
mpm_winnt: Following up on r1801144, use the new accept_filter_e enum
values in a couple of missed places in winnt_accept().

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

7 years agompm_winnt: Fix typo in the logged message in winnt_get_connection().
Evgeny Kotkov [Fri, 7 Jul 2017 11:15:31 +0000 (11:15 +0000)]
mpm_winnt: Fix typo in the logged message in winnt_get_connection().

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

7 years agompm_winnt: Refactor the mpm_get_completion_context() function so that it
Evgeny Kotkov [Fri, 7 Jul 2017 11:14:25 +0000 (11:14 +0000)]
mpm_winnt: Refactor the mpm_get_completion_context() function so that it
would return a proper apr_status_t instead of yielding the result via the
*timeout out variable.

This makes the calling side easier to follow by avoiding an additional
layer of if's.

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

7 years agompm_winnt: Remove an unnecessary retry after receiving a non-timeout failure
Evgeny Kotkov [Fri, 7 Jul 2017 11:08:26 +0000 (11:08 +0000)]
mpm_winnt: Remove an unnecessary retry after receiving a non-timeout failure
from the mpm_get_completion_context() function.

Currently, the only possible reasons why mpm_get_completion_context() could
fail are real errors such as being unable to WaitForSingleObject(), allocate
memory or create an event.  Retrying under such circumstances doesn't make
sense, and could be as well considered harmful.

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

7 years agompm_winnt: Factor out a helper function to parse the type of an accept
Evgeny Kotkov [Fri, 7 Jul 2017 11:00:07 +0000 (11:00 +0000)]
mpm_winnt: Factor out a helper function to parse the type of an accept
filter and use an appropriate enum for it.

This makes the code in winnt_accept() a bit easier to follow.  As a minor
side effect, it also fixes a small bug where the "unrecognized AcceptFilter
'%s'" log entry would always contain "none" instead of the actually
unrecognized kind of the accept filter.

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

7 years agompm_winnt: Don't forget to close the I/O completion port as part of the
Evgeny Kotkov [Fri, 7 Jul 2017 10:51:23 +0000 (10:51 +0000)]
mpm_winnt: Don't forget to close the I/O completion port as part of the
cleanup in the child process.

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

7 years agoOn the trunk:
Stefan Eissing [Thu, 6 Jul 2017 08:15:27 +0000 (08:15 +0000)]
On the trunk:

mod_http2: Simplify ready queue, less memory and better performance. Update
     mod_http2 version to 1.10.7.

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

7 years agoCorrect string scope to prevent duplicated values for subsequent tokens.
William A. Rowe Jr [Wed, 5 Jul 2017 19:44:30 +0000 (19:44 +0000)]
Correct string scope to prevent duplicated values for subsequent tokens.

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

7 years agoFix negotiation type parsing to be strict about "*", "*/*" and "type/*"
William A. Rowe Jr [Wed, 5 Jul 2017 19:42:30 +0000 (19:42 +0000)]
Fix negotiation type parsing to be strict about "*", "*/*" and "type/*"
comparisons.

Submitted by: wrowe, Robert Święcki <robert swiecki.net>

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

7 years agoBackported.
Rainer Jung [Tue, 4 Jul 2017 22:41:31 +0000 (22:41 +0000)]
Backported.

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

7 years agoFix another mod_lua compile error.
Rainer Jung [Tue, 4 Jul 2017 22:14:13 +0000 (22:14 +0000)]
Fix another mod_lua compile error.
Compilation now tested against Lus 5.1, 5.2
and 5.3. The libs were compiled with COMPAT
flags set, but mod_lua no longer sets them
so it should compile and run with non-COMPAT
libs as well.

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

7 years agoFix new compilation breakage in mod_lua.
Rainer Jung [Tue, 4 Jul 2017 21:48:41 +0000 (21:48 +0000)]
Fix new compilation breakage in mod_lua.

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

7 years agoMostly revert the configure compat check for
Rainer Jung [Tue, 4 Jul 2017 20:49:53 +0000 (20:49 +0000)]
Mostly revert the configure compat check for
lua from r1785753. This should now no longer
be needed.

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