]> granicus.if.org Git - apache/log
apache
8 years agoPrevent dangling buckets by safely (and always) cleanup passed out (master)
Yann Ylavic [Tue, 6 Sep 2016 09:11:11 +0000 (09:11 +0000)]
Prevent dangling buckets by safely (and always) cleanup passed out (master)
brigades.

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

8 years agoRebuild.
Lucien Gentis [Sat, 3 Sep 2016 13:21:52 +0000 (13:21 +0000)]
Rebuild.

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

8 years agoXML update.
Lucien Gentis [Sat, 3 Sep 2016 13:20:57 +0000 (13:20 +0000)]
XML update.

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

8 years agoupdate after backport
Stefan Eissing [Thu, 1 Sep 2016 15:59:23 +0000 (15:59 +0000)]
update after backport

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

8 years agomod_proxy_http2: fix for netware build, by normw
Stefan Eissing [Wed, 31 Aug 2016 09:13:35 +0000 (09:13 +0000)]
mod_proxy_http2: fix for netware build, by normw

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

8 years agoWithout AP_DEBUG_ASSERT, these could still be NULL during runtime
Jim Jagielski [Tue, 30 Aug 2016 19:23:56 +0000 (19:23 +0000)]
Without AP_DEBUG_ASSERT, these could still be NULL during runtime

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

8 years agoClarify
William A. Rowe Jr [Tue, 30 Aug 2016 01:06:48 +0000 (01:06 +0000)]
Clarify

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

8 years agodocs: rebuild
Jacob Champion [Tue, 30 Aug 2016 00:01:55 +0000 (00:01 +0000)]
docs: rebuild

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

8 years agompm_winnt: clear OVERLAPPED structs before reuse
Jacob Champion [Mon, 29 Aug 2016 23:56:21 +0000 (23:56 +0000)]
mpm_winnt: clear OVERLAPPED structs before reuse

MSDN documentation states that

    Any unused members of [an OVERLAPPED] structure should always be
    initialized to zero before the structure is used in a function call.
    Otherwise, the function may fail and return ERROR_INVALID_PARAMETER.

Prior to this patch, the internal state left over from previous
overlapped I/O was passed into the next call. It's unclear what effect
this might have, if any. (I have not personally witnessed an
ERROR_INVALID_PARAMETER myself.)

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

8 years agompm_winnt: remove duplication of ap_process_connection
Jacob Champion [Mon, 29 Aug 2016 23:56:20 +0000 (23:56 +0000)]
mpm_winnt: remove duplication of ap_process_connection

Further follow-up to the previous commit: now that we no longer patch a
network bucket into the brigade, we can revert to calling
ap_process_connection() directly instead of duplicating its logic.

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

8 years agompm_winnt: remove the AcceptEx data network bucket
Jacob Champion [Mon, 29 Aug 2016 23:56:18 +0000 (23:56 +0000)]
mpm_winnt: remove the AcceptEx data network bucket

Follow-up to the prior commit: without an incoming data buffer, the
custom network bucket code is now orphaned and we can remove it
entirely. This has the added benefit that we are no longer using the
internal OVERLAPPED.Pointer field, which is discouraged by the MSDN
docs.

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

8 years agompm_winnt: remove 'data' AcceptFilter in favor of 'connect'
Jacob Champion [Mon, 29 Aug 2016 23:56:16 +0000 (23:56 +0000)]
mpm_winnt: remove 'data' AcceptFilter in favor of 'connect'

The 'data' AcceptFilter optimization instructs Windows to wait until
data is received on a connection before completing the AcceptEx
operation. Unfortunately, it seems this isn't performed atomically --
AcceptEx "partially" accepts the incoming connection during the wait for
data, leaving all other incoming connections in the accept queue. This
opens the server to a denial of service.

Since the fix for this requires a substantial rearchitecture (likely
involving multiple outstanding calls to AcceptEx), disable the 'data'
filter for now and replace it with 'connect', which uses the AcceptEx
interface but does not wait for data.

Users running prior releases of httpd on Windows should explicitly move
to a 'connect' AcceptFilter in their configurations if they are
currently using the default 'data' filter.

Many thanks to mludha, Arthur Ramsey, Paul Spangler, and many others for
their assistance in tracking down and diagnosing this issue.

PR: 59970

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

8 years agoCalm some overly agressive crlf handling
William A. Rowe Jr [Mon, 29 Aug 2016 22:19:25 +0000 (22:19 +0000)]
Calm some overly agressive crlf handling

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

8 years agoNew optional flag to enforce <CR><LF> line delimiters in ap_[r]getline,
William A. Rowe Jr [Mon, 29 Aug 2016 22:17:07 +0000 (22:17 +0000)]
New optional flag to enforce <CR><LF> line delimiters in ap_[r]getline,
created by overloading 'int fold' (1 or 0) as 'int flags', with the same
value 1 for AP_GETLINE_FOLD (which httpd doesn't use), and a new value
2 for AP_GETLINE_CRLF

Enforce CRLF when HttpProtocolOptions Strict is in force.

Correctly introduces a new t/TEST fail.

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

8 years agoRegenerate
William A. Rowe Jr [Mon, 29 Aug 2016 17:33:04 +0000 (17:33 +0000)]
Regenerate

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

8 years agoClean up a stray <p>, copy n paste error
William A. Rowe Jr [Mon, 29 Aug 2016 17:32:41 +0000 (17:32 +0000)]
Clean up a stray <p>, copy n paste error

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

8 years agoClarify documentation based on concensus decisions discussed on dev@
William A. Rowe Jr [Mon, 29 Aug 2016 17:30:53 +0000 (17:30 +0000)]
Clarify documentation based on concensus decisions discussed on dev@
and reflecting the current implementation.

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

8 years agoCorrect the parser construction for several optimizations,
William A. Rowe Jr [Mon, 29 Aug 2016 17:25:35 +0000 (17:25 +0000)]
Correct the parser construction for several optimizations,
based on the fact that bad whitespace shall not be permitted
or corrected in any operating mode, while preserving the
ability to extract bad method/uri/proto for later reporting
and diagnostics.

This change causes badwhitespace in the request line or any
request field line to always fail, and not honor the setting
of the HttpProtocolOptions Unsafe option. Mult SP characters
or trailing SP characters in the request line are still
permitted in Unsafe mode.

Adjusted several error message emits to match these changes.

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

8 years agoDropped a public structure elt, bump major
William A. Rowe Jr [Mon, 29 Aug 2016 13:48:47 +0000 (13:48 +0000)]
Dropped a public structure elt, bump major

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

8 years agoFolding StrictWhitespace into the Strict ruleset of RFC7230, per dev@ poll.
William A. Rowe Jr [Mon, 29 Aug 2016 13:47:27 +0000 (13:47 +0000)]
Folding StrictWhitespace into the Strict ruleset of RFC7230, per dev@ poll.
This choice is unanimous, although StrictURI (a different RFC) still hasn't
found absolute concensus.

An ap_mmn bump will follow (major, this removes a struct elt)

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

8 years agoRebuild.
Lucien Gentis [Sun, 28 Aug 2016 13:59:31 +0000 (13:59 +0000)]
Rebuild.

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

8 years agoXML updates.
Lucien Gentis [Sun, 28 Aug 2016 13:57:59 +0000 (13:57 +0000)]
XML updates.

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

8 years agoStash the cgi PID earlier in mod_cgid
Eric Covener [Sat, 27 Aug 2016 23:15:11 +0000 (23:15 +0000)]
Stash the cgi PID earlier in mod_cgid

In some cases, a 2nd CGI using the same c->id can get into
the mod_cgid handler before cleanups have been run, causing
the new CGI pid to be used by the first CGI's cleanup function.

Instead of stashing c->id in the request processing thread,
just use it before leaving the handler to get the pid.

May indirectly fix PR57771, but it must have a slightly different
cause because stashing the conn_id slightly differently was
supposed to be sufficient there.

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

8 years agoUpdated the changelog to reflect last commits about Last-Modified header handling.
Luca Toscano [Sat, 27 Aug 2016 13:55:43 +0000 (13:55 +0000)]
Updated the changelog to reflect last commits about Last-Modified header handling.

Added William and Jacob to the list of authors to reflect
their participation and suggestions given in the dev@'s email thread (thanks!).

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

8 years agoupdate after http2 backport
Stefan Eissing [Sat, 27 Aug 2016 12:43:33 +0000 (12:43 +0000)]
update after http2 backport

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

8 years agomod_http2: using invalid header callback from nghttp2 1.14.0 onwards
Stefan Eissing [Sat, 27 Aug 2016 12:07:16 +0000 (12:07 +0000)]
mod_http2: using invalid header callback from nghttp2 1.14.0 onwards

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

8 years agomod_http2: fix for stream buffer handling during shutdown
Stefan Eissing [Sat, 27 Aug 2016 10:39:24 +0000 (10:39 +0000)]
mod_http2: fix for stream buffer handling during shutdown

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

8 years agoRevert to the correct APLOGNO ID for this case
William A. Rowe Jr [Fri, 26 Aug 2016 21:10:08 +0000 (21:10 +0000)]
Revert to the correct APLOGNO ID for this case

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

8 years agoResync
William A. Rowe Jr [Fri, 26 Aug 2016 21:05:35 +0000 (21:05 +0000)]
Resync

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

8 years agoCorrect URL failure reporting.
William A. Rowe Jr [Fri, 26 Aug 2016 20:41:55 +0000 (20:41 +0000)]
Correct URL failure reporting.

Drop the second reporting of HEAD over HTTP/0.9 requests, we short-circuit
this early now in read_request_line() when presented anything other than
the sole "GET" method permitted by spec.

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

8 years agoFirst survey results, all intrinsicly bad input will be logged at the debug
William A. Rowe Jr [Fri, 26 Aug 2016 20:35:42 +0000 (20:35 +0000)]
First survey results, all intrinsicly bad input will be logged at the debug
level, no louder. This patch intentionally dodges the Limit* constrained tests
since administrators may shoot themselves in the foot, or be confronted with
impossibly long cookie values, etc.

Adjust the documentation to match.

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

8 years agoadd [flags] to syntax
Eric Covener [Fri, 26 Aug 2016 12:59:20 +0000 (12:59 +0000)]
add [flags] to syntax

per http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#comment_5728

split list of flags out of the massive CondPattern list.

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

8 years agoAfter a long discussion in dev@ I reviewed my previous commit to only warn
Luca Toscano [Fri, 26 Aug 2016 11:00:44 +0000 (11:00 +0000)]
After a long discussion in dev@ I reviewed my previous commit to only warn
the admins about Last-Modified header violations rather than trying
to interpret datestrings (like the ones not in GMT).

I also added explicit comments to summarize the current assumptions,
so it will be easier for somebody in the future to modify the code.

The following use cases are covered:
1) (F)CGI backend sends a Last-Modified header not in GMT and considered in the future by httpd (like now() in the EU/Paris timezone)
2) (F)CGI backend sends a Last-Modified header not in GMT and not considered in the future by httpd (like now() + 2 hours in the PST timezone)
3) (F)CGI backend sends a Last-Modified header in GMT but with a datetime in the future

Suggestions and opinion are really welcome.

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

8 years agoSync
William A. Rowe Jr [Thu, 25 Aug 2016 15:41:01 +0000 (15:41 +0000)]
Sync

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

8 years agoCorrect RFC reference text (link was right)
William A. Rowe Jr [Thu, 25 Aug 2016 15:40:14 +0000 (15:40 +0000)]
Correct RFC reference text (link was right)

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

8 years ago* Add missing CHANGES entry for r1757662.
Ruediger Pluem [Thu, 25 Aug 2016 11:43:55 +0000 (11:43 +0000)]
* Add missing CHANGES entry for r1757662.

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

8 years ago* Add missing copy of hcuri and hcexpr ftom the worker to the health check worker.
Ruediger Pluem [Thu, 25 Aug 2016 11:38:07 +0000 (11:38 +0000)]
* Add missing copy of hcuri and hcexpr ftom the worker to the health check worker.

PR: 60038
Submitted by: zdeno <zdeno@scnet.sk>

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

8 years agoxforms fr
Christophe Jaillet [Thu, 25 Aug 2016 04:54:49 +0000 (04:54 +0000)]
xforms fr

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

8 years agoFix some French translations in order explanations to match examples.
Christophe Jaillet [Thu, 25 Aug 2016 04:52:04 +0000 (04:52 +0000)]
Fix some French translations in order explanations to match examples.

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

8 years agoAlso catch invalid spaces between the URI <> Protocol in StrictWhitespace mode.
William A. Rowe Jr [Thu, 25 Aug 2016 02:45:18 +0000 (02:45 +0000)]
Also catch invalid spaces between the URI <> Protocol in StrictWhitespace mode.
(matching the test for the Method <> URI)

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

8 years agoRebuild all
William A. Rowe Jr [Thu, 25 Aug 2016 01:48:36 +0000 (01:48 +0000)]
Rebuild all

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

8 years agoRename LenientWhitespace to UnsafeWhitespace and change StrictWhitespace
William A. Rowe Jr [Thu, 25 Aug 2016 01:46:20 +0000 (01:46 +0000)]
Rename LenientWhitespace to UnsafeWhitespace and change StrictWhitespace
to the default behavior, after discussion with fielding et al about the
purpose of section 3.5. Update the documentation to clarify this.

This patch removes whitespace considerations from the Strict|Unsafe toggle
and consolidates them all in the StrictWhitespace|UnsafeWhitespace toggle.

Added a bunch of logic comments to read_request_line parsing.

Dropped the badwhitespace list for an all-or-nothing toggle in rrl.

Leading space before the method is optimized to be evaluated only once.

Toggled the request from HTTP/0.9 to HTTP/1.0 for more BAD_REQUEST cases.

Moved s/[\n\v\f\r]/ / cleanup logic earlier in the cycle, to operate on
each individual line read, and catch bad whitespace errors earlier.
This changes the obs-fold to more efficiently condense whitespace and
forces concatinatination with a single SP, always. Overrides are not
necessary since obs-fold is clearly deprecated.

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

8 years agomod_http2: give timeout goaway reason when applicable
Stefan Eissing [Wed, 24 Aug 2016 15:13:12 +0000 (15:13 +0000)]
mod_http2: give timeout goaway reason when applicable

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

8 years agomod_http2: latest h2/state debug draft, fixes in 100-continue response generation
Stefan Eissing [Wed, 24 Aug 2016 14:44:53 +0000 (14:44 +0000)]
mod_http2: latest h2/state debug draft, fixes in 100-continue response generation

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

8 years agomod_http2: graceful handling of open streams during graceful shutdown
Stefan Eissing [Wed, 24 Aug 2016 13:30:11 +0000 (13:30 +0000)]
mod_http2: graceful handling of open streams during graceful shutdown

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

8 years agoxforms
Eric Covener [Tue, 23 Aug 2016 00:15:55 +0000 (00:15 +0000)]
xforms

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

8 years agomore PR60024 feedback re: consistent terminology.
Eric Covener [Tue, 23 Aug 2016 00:15:44 +0000 (00:15 +0000)]
more PR60024 feedback re: consistent terminology.

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

8 years agodocs: rebuild
Jacob Champion [Mon, 22 Aug 2016 21:27:19 +0000 (21:27 +0000)]
docs: rebuild

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

8 years agodocs: update the "SSL Strong Encryption" how-to
Jacob Champion [Mon, 22 Aug 2016 21:27:18 +0000 (21:27 +0000)]
docs: update the "SSL Strong Encryption" how-to

The how-to was a little behind the times. Update to modern ciphersuite
selections, and teach the reader more about *why* certain selections and
settings are chosen. Try to future-proof a little bit by including the
"last-reviewed" date and pointing to Mozilla's recommendation tool.

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

8 years ago* modules/ssl/ssl_engine_kernel.c (ssl_callback_SessionTicket): Fail
Joe Orton [Mon, 22 Aug 2016 11:10:58 +0000 (11:10 +0000)]
* modules/ssl/ssl_engine_kernel.c (ssl_callback_SessionTicket): Fail
  if RAND_bytes() fails; possible per API, although not in practice
  with the OpenSSL implementation.

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

8 years agomod_proxy_fcgi: revert r1756187.
Yann Ylavic [Sun, 21 Aug 2016 23:53:24 +0000 (23:53 +0000)]
mod_proxy_fcgi: revert r1756187.

rpluem: The default is disablereuse=off and the code you removed makes the
default disablereuse=on.

ylavic: so right..

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

8 years agoAs commented, ensure we don't flag a request as a rejected 0.9 request
William A. Rowe Jr [Sun, 21 Aug 2016 16:50:14 +0000 (16:50 +0000)]
As commented, ensure we don't flag a request as a rejected 0.9 request
if we identified any other parsing errors and handle all 0.9 request
errors as 400 BAD REQUEST, presuming HTTP/1.0 to deliver the error details.
Do not report 0.9 issues as 505 INVALID PROTOCOL because the client apparently
specified no protocol, and 505 post-dates the simple HTTP request mechanism.

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

8 years agoYann is correct, % is distinct from reserved and unreserved
William A. Rowe Jr [Sun, 21 Aug 2016 16:12:49 +0000 (16:12 +0000)]
Yann is correct, % is distinct from reserved and unreserved

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

8 years agoap_reclaim_child_processes() ignores its first argument
Stefan Fritsch [Sun, 21 Aug 2016 14:09:00 +0000 (14:09 +0000)]
ap_reclaim_child_processes() ignores its first argument

note this in the docs, add comment

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

8 years agoRevert "On exit, don't write to other generations' scoreboard slots"
Stefan Fritsch [Sun, 21 Aug 2016 13:06:45 +0000 (13:06 +0000)]
Revert "On exit, don't write to other generations' scoreboard slots"

As we have removed the possibility to re-use used scoreboard slots in r1757031,
we don't need this check anymore.

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

8 years agoRebuild.
Lucien Gentis [Sun, 21 Aug 2016 11:43:53 +0000 (11:43 +0000)]
Rebuild.

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

8 years agoXML updates.
Lucien Gentis [Sun, 21 Aug 2016 11:42:51 +0000 (11:42 +0000)]
XML updates.

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

8 years agompm_event: don't re-use scoreboard slots that are still in use
Stefan Fritsch [Sat, 20 Aug 2016 20:48:13 +0000 (20:48 +0000)]
mpm_event: don't re-use scoreboard slots that are still in use

This causes inconsistent data in the scoreboard (due to async
connections) and makes it difficult to determine what is going on.
Therefore it is not a useful fix for the scoreboard-full issues (PR
53555).

The consent on the dev list is that we should allocate/use more
scoreboard entries instead.

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

8 years agompm_event: minor code simplification
Stefan Fritsch [Sat, 20 Aug 2016 20:45:40 +0000 (20:45 +0000)]
mpm_event: minor code simplification

- move variable initializations into declarations
- use max_workers variable

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

8 years agomod_status: note stopping procs in async info table
Stefan Fritsch [Sat, 20 Aug 2016 20:21:39 +0000 (20:21 +0000)]
mod_status: note stopping procs in async info table

* add new column "stopping", denoting if a process is shutting down
* add additional "(old gen)", if a process is from before a graceful reload
* add counts of processes and stopping processes to summary line

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

8 years agoxforms
Eric Covener [Sat, 20 Aug 2016 19:25:05 +0000 (19:25 +0000)]
xforms

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

8 years agomore fixes for per-dir explanation
Eric Covener [Sat, 20 Aug 2016 19:24:56 +0000 (19:24 +0000)]
more fixes for per-dir explanation

change style of per-dir note for readability

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

8 years agodoc is already a wall of text w/o regex hints.
Eric Covener [Sat, 20 Aug 2016 19:09:27 +0000 (19:09 +0000)]
doc is already a wall of text w/o regex hints.

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

8 years agoxforms
Eric Covener [Sat, 20 Aug 2016 19:07:07 +0000 (19:07 +0000)]
xforms

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

8 years agobld break
Eric Covener [Sat, 20 Aug 2016 19:06:25 +0000 (19:06 +0000)]
bld break

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

8 years agomore per-dir cleanup, remove redundant text.
Eric Covener [Sat, 20 Aug 2016 19:04:40 +0000 (19:04 +0000)]
more per-dir cleanup, remove redundant text.
PR60024

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

8 years agotake a pass through "per-dir" for PR60024
Eric Covener [Sat, 20 Aug 2016 18:39:33 +0000 (18:39 +0000)]
take a pass through "per-dir" for PR60024

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

8 years agoroll back last two commits per PR60024.
Eric Covener [Sat, 20 Aug 2016 18:28:27 +0000 (18:28 +0000)]
roll back last two commits per PR60024.

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

8 years agoFix <p> tag closing syntax
Christophe Jaillet [Sat, 20 Aug 2016 16:23:42 +0000 (16:23 +0000)]
Fix <p> tag closing syntax

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

8 years agoDelay some memory allocation in order to save 272 bytes in the 'request' memory pool...
Christophe Jaillet [Sat, 20 Aug 2016 15:50:22 +0000 (15:50 +0000)]
Delay some memory allocation in order to save 272 bytes in the 'request' memory pool if mod_status handler is triggered and is not able to handle the request

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

8 years agoFix the number of column for 'Async connections'.
Christophe Jaillet [Sat, 20 Aug 2016 15:36:12 +0000 (15:36 +0000)]
Fix the number of column for 'Async connections'.
There are only 3 columns (writing, keep-alive, closing), not 4.

Try to improve the code layout for it to be more readable.
Each <th> is on its own line so keep the corresponding "colspan" <td> fields grouped together.

r1738628 introduced a new column, 'Slot'.
Add an empty cell for it in the last line of the table, in order to fix the layout of the Totals.

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

8 years agoxforms
Christophe Jaillet [Sat, 20 Aug 2016 13:09:49 +0000 (13:09 +0000)]
xforms

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

8 years agoFix a typo
Christophe Jaillet [Sat, 20 Aug 2016 13:09:12 +0000 (13:09 +0000)]
Fix a typo

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

8 years agoRegen docs, no complaints yet
William A. Rowe Jr [Sat, 20 Aug 2016 01:17:51 +0000 (01:17 +0000)]
Regen docs, no complaints yet

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

8 years agoSurpress noise about syntax
William A. Rowe Jr [Sat, 20 Aug 2016 00:53:38 +0000 (00:53 +0000)]
Surpress noise about syntax

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

8 years agomod_ssl: follow up to r1740928.
Yann Ylavic [Fri, 19 Aug 2016 23:08:58 +0000 (23:08 +0000)]
mod_ssl: follow up to r1740928.
Quiet (not so )clever compilers about (im)possible use of uninitialized 'mode'.

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

8 years agoIntroduce StrictURI|UnsafeURI for RFC3986 enforcement
William A. Rowe Jr [Fri, 19 Aug 2016 19:48:58 +0000 (19:48 +0000)]
Introduce StrictURI|UnsafeURI for RFC3986 enforcement

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

8 years agoAfter lengthy investigation with covener's assistance, it seems we cannot
William A. Rowe Jr [Fri, 19 Aug 2016 17:24:27 +0000 (17:24 +0000)]
After lengthy investigation with covener's assistance, it seems we cannot
use a static table. We cannot change this to dynamic use of the local iconv
without build changes to avoid such use on cross-platform builds.

I'm satisfied if we trust iscntrl to at least catch all the most lethal
C0 Ctrls (we are promised it catches bad carriage control/line endings)
and leave this in the short term with an XXX to revisit at a future time.

The token stop never needed this table, because we can use the affirmative
list of token characters to define it.

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

8 years agoGenerally, the cart comes before the horse, this mirrors apr_lib.h
William A. Rowe Jr [Fri, 19 Aug 2016 16:34:14 +0000 (16:34 +0000)]
Generally, the cart comes before the horse, this mirrors apr_lib.h

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

8 years agoResolve Netware (and other arch) build error for non-portable isascii()
William A. Rowe Jr [Fri, 19 Aug 2016 16:31:05 +0000 (16:31 +0000)]
Resolve Netware (and other arch) build error for non-portable isascii()

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

8 years agoFix bogus K&R declarations
William A. Rowe Jr [Fri, 19 Aug 2016 15:59:52 +0000 (15:59 +0000)]
Fix bogus K&R declarations

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

8 years agoResync docs
William A. Rowe Jr [Fri, 19 Aug 2016 02:33:43 +0000 (02:33 +0000)]
Resync docs

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

8 years agoFix as suggested by jailletc36, corresponding to all other comments on the topic
William A. Rowe Jr [Fri, 19 Aug 2016 02:32:25 +0000 (02:32 +0000)]
Fix as suggested by jailletc36, corresponding to all other comments on the topic

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

8 years agoFix some style (spaces only)
Christophe Jaillet [Thu, 18 Aug 2016 21:13:06 +0000 (21:13 +0000)]
Fix some style (spaces only)

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

8 years agoBe more consistent when we alocate this brigade.
Christophe Jaillet [Thu, 18 Aug 2016 21:10:37 +0000 (21:10 +0000)]
Be more consistent when we alocate this brigade.
This should save a few bytes in case of early exit and is, IMHO, cleaner.

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

8 years agoA band-aid to resolve an immediate IBM MVS'ism
William A. Rowe Jr [Thu, 18 Aug 2016 20:41:27 +0000 (20:41 +0000)]
A band-aid to resolve an immediate IBM MVS'ism

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

8 years agoReplace tab by spaces to be consistent
Christophe Jaillet [Thu, 18 Aug 2016 20:36:56 +0000 (20:36 +0000)]
Replace tab by spaces to be consistent

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

8 years agoCorrect request header handling of whitespace with the new possible config of
William A. Rowe Jr [Thu, 18 Aug 2016 20:26:53 +0000 (20:26 +0000)]
Correct request header handling of whitespace with the new possible config of
HttpProtocolOptions Unsafe StrictWhitespace

I have elected not to preserve any significance to excess whitespace in the
now-deprecated obs-fold code path, that's certainly open for discussion.

This can be reviewed by tweaking t/conf/extra.conf to switch Strict to Unsafe.

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

8 years agoRemove unused typedef uthn_dbd_conf
Christophe Jaillet [Thu, 18 Aug 2016 20:24:20 +0000 (20:24 +0000)]
Remove unused typedef uthn_dbd_conf

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

8 years agoMore values please
William A. Rowe Jr [Thu, 18 Aug 2016 20:23:19 +0000 (20:23 +0000)]
More values please

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

8 years agoRemove unused typedef nvctx_t
Christophe Jaillet [Thu, 18 Aug 2016 20:17:53 +0000 (20:17 +0000)]
Remove unused typedef nvctx_t

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

8 years agoFix some missed "strcasecmp <--> ap_cstr_casecmp" conversions.
Christophe Jaillet [Thu, 18 Aug 2016 20:13:17 +0000 (20:13 +0000)]
Fix some missed "strcasecmp <--> ap_cstr_casecmp" conversions.

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

8 years ago* server/protocol.c (read_request_line): Fix compiler warnings with
Joe Orton [Thu, 18 Aug 2016 15:49:25 +0000 (15:49 +0000)]
* server/protocol.c (read_request_line): Fix compiler warnings with
  GCC.

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

8 years agoDrop redundant == --rrl_none evaluation, noted by rpluem
William A. Rowe Jr [Thu, 18 Aug 2016 15:47:23 +0000 (15:47 +0000)]
Drop redundant == --rrl_none evaluation, noted by rpluem

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

8 years agoDrop unused, previously sscanf() target variables
William A. Rowe Jr [Thu, 18 Aug 2016 15:43:26 +0000 (15:43 +0000)]
Drop unused, previously sscanf() target variables

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

8 years agoDocs regen
William A. Rowe Jr [Thu, 18 Aug 2016 07:15:24 +0000 (07:15 +0000)]
Docs regen

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

8 years agoPerform correct, strict parsing of the request line, handling the
William A. Rowe Jr [Thu, 18 Aug 2016 07:15:06 +0000 (07:15 +0000)]
Perform correct, strict parsing of the request line, handling the
http protocol tag, url and method appropriately, and attempting
to extract values even in the presence of unusual whitespace in
keeping with section 3.5, prior to responding with whatever
error reply is needed. Conforms to RFC7230 in all respects,
the section 3.5 optional behavior can be disabled by the user
with a new HttpProtocolOptions StrictWhitespace flag. In all
cases, the_request is regenerated from the parsed components
with exactly two space characters.

Shift sf's 'strict' method check from the Strict behavior because
it violates forward proxy logic, adding a new RegisteredMethods
flag, as it will certainly be useful to some.

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

8 years agoGrab a pool of aplogno's
William A. Rowe Jr [Thu, 18 Aug 2016 07:02:39 +0000 (07:02 +0000)]
Grab a pool of aplogno's

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

8 years agoxforms
Christophe Jaillet [Thu, 18 Aug 2016 04:49:22 +0000 (04:49 +0000)]
xforms

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

8 years agoImprove highlight and formatting.
Christophe Jaillet [Thu, 18 Aug 2016 04:48:02 +0000 (04:48 +0000)]
Improve highlight and formatting.

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