]> granicus.if.org Git - apache/log
apache
15 years agoFix the io buffersize code. Have the docs match the code
Jim Jagielski [Thu, 23 Oct 2008 12:01:53 +0000 (12:01 +0000)]
Fix the io buffersize code. Have the docs match the code
and allow more flexibility in settings. Also, document
the ProxyPass/worker options of io and rec buffersize.

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

15 years agoImplement checks for NULL r->user as per r705361.
Chris Darroch [Wed, 22 Oct 2008 20:11:07 +0000 (20:11 +0000)]
Implement checks for NULL r->user as per r705361.

NOTE: If someone with an LDAP setup can ensure this compiles and works,
that would be great.

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

15 years agoRemove potential for memory leak... allocate on this
Jim Jagielski [Wed, 22 Oct 2008 19:13:57 +0000 (19:13 +0000)]
Remove potential for memory leak... allocate on this
request which is now viable due to connection pooling.

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

15 years agomissing an "if"
Eric Covener [Wed, 22 Oct 2008 13:40:21 +0000 (13:40 +0000)]
missing an "if"

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

15 years agoupdate transformation
André Malo [Wed, 22 Oct 2008 11:45:33 +0000 (11:45 +0000)]
update transformation

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

15 years agoleave a hint about some non-intuitive startup behavior for RewriteMap programs
Eric Covener [Wed, 22 Oct 2008 11:44:53 +0000 (11:44 +0000)]
leave a hint about some non-intuitive startup behavior for RewriteMap programs

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

15 years ago* There are no subrequests which have itself as parent.
Ruediger Pluem [Wed, 22 Oct 2008 10:40:55 +0000 (10:40 +0000)]
* There are no subrequests which have itself as parent.

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

15 years ago* This one is backported.
Ruediger Pluem [Wed, 22 Oct 2008 10:27:30 +0000 (10:27 +0000)]
* This one is backported.

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

15 years ago* Move ap_timeout_parameter_parse from mod_proxy.c to server/util.c and thus
Ruediger Pluem [Wed, 22 Oct 2008 10:23:52 +0000 (10:23 +0000)]
* Move ap_timeout_parameter_parse from mod_proxy.c to server/util.c and thus
  make it part of the public API.

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

15 years ago* Improve the way to detect whether buckets in the filter chain need to be
Ruediger Pluem [Wed, 22 Oct 2008 09:34:21 +0000 (09:34 +0000)]
* Improve the way to detect whether buckets in the filter chain need to be
  flushed by using the main requests bytes_count field instead of the
  subrequest field.

* Do not reset conn->need_flush. This prevents SegFaults from not flushing
  buckets in the filter chain.

PR: 45792

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

15 years agopre-translation improvements
Nilgun Belma Buguner [Wed, 22 Oct 2008 07:59:20 +0000 (07:59 +0000)]
pre-translation improvements

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

15 years agoupdate for sync with English docs.
Nilgun Belma Buguner [Tue, 21 Oct 2008 06:04:41 +0000 (06:04 +0000)]
update for sync with English docs.

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

15 years agoap_proxy_determine_connection modifies the url if we are retrying the result we shoul...
Jean-Frederic Clere [Mon, 20 Oct 2008 15:11:05 +0000 (15:11 +0000)]
ap_proxy_determine_connection modifies the url if we are retrying the result we should retry using the orginal url.

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

15 years ago *) mod_dir: Support "DirectoryIndex None"
Eric Covener [Sun, 19 Oct 2008 12:35:42 +0000 (12:35 +0000)]
  *) mod_dir: Support "DirectoryIndex None"
     Suggested By André Warnier <aw ice-sa.com> [Eric Covener]

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

15 years agoconvert tabs to spaces
Chris Darroch [Fri, 17 Oct 2008 04:17:12 +0000 (04:17 +0000)]
convert tabs to spaces

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

15 years agoPrior to authn/z refactoring in r368027, if authorization Require
Chris Darroch [Thu, 16 Oct 2008 21:09:27 +0000 (21:09 +0000)]
Prior to authn/z refactoring in r368027, if authorization Require
directives had no matching AuthType and associated authentication
directives, requests would generally fall through in the
check_user_id hook to mod_authn_default.c's authentication_no_user()
handler, which returned DECLINED if ap_auth_type() was not set.
The ap_process_request_internal() function in request.c would handle
this case by logging an "AuthType not set!" error and returning
HTTP_INTERNAL_SERVER_ERROR.

The refactoring removes this error handling in request.c, so
individual modules will need to test for a lack of authentication,
as necessary.  Since some modules such as mod_authz_host.c support
Require directives that do not need any authentication, the
mod_authn_default.c handler no longer returns DECLINED if ap_auth_type()
is not set.  (Also, mod_authn_default can be compiled out with
--disable-authn-default, so it can't be relied upon to exist.)

Since r->user may now be NULL, individual handlers must test for that
case when necessary.  Otherwise, most Require directives in the
absence of AuthType directives cause handlers to crash while performing
strcmp() and friends on a NULL r->user value.

NOTE: I can't test mod_authnz_ldap.c myself, so I'm not sure if it
needs similar fixes.  On the one hand, a NULL r->user in the authz
handlers always generates a log message.  However, it appears that
authn_ldap_build_filter() will sometimes then be called, perform no
action, which may result in a possibly uninitialized filtbuf buffer
being passed to util_ldap_cache_getuserdn().  I don't know if that
could cause problems in the LDAP cache code.  If someone familiar with
LDAP authz could take a look, that would be much appreciated.

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

15 years agoMake text match example.
Mads Toftum [Thu, 16 Oct 2008 10:13:54 +0000 (10:13 +0000)]
Make text match example.

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

15 years agoAdd example and comments when using ScriptAlias with a file.
Tony Stevenson [Thu, 16 Oct 2008 01:48:14 +0000 (01:48 +0000)]
Add example and comments when using ScriptAlias with a file.

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

15 years agoUpdate howto/cgi.xml to link to RFC 3875 not a document on Ken's site
Tony Stevenson [Thu, 16 Oct 2008 01:33:40 +0000 (01:33 +0000)]
Update howto/cgi.xml to link to RFC 3875 not a document on Ken's site

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

15 years agoThis was backported
Sander Temme [Wed, 15 Oct 2008 22:12:59 +0000 (22:12 +0000)]
This was backported

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

15 years ago* Update transformation
Ruediger Pluem [Wed, 15 Oct 2008 19:46:32 +0000 (19:46 +0000)]
* Update transformation

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

15 years ago* Add the possibility to set the worker parameters connectiontimeout and ping
Ruediger Pluem [Wed, 15 Oct 2008 19:43:51 +0000 (19:43 +0000)]
* Add the possibility to set the worker parameters connectiontimeout and ping
  in milliseconds and the parameter acquire in seconds.
  Add the new currently static function ap_timeout_parameter_parse that
  should become a general utility function once its API is hammered out.

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

15 years ago* Send Content-Type application/ocsp-request for POST requests to OSCP
Ruediger Pluem [Wed, 15 Oct 2008 13:40:56 +0000 (13:40 +0000)]
* Send Content-Type application/ocsp-request for POST requests to OSCP
  responders.

PR: 46014
Submitted by: Dr Stephen Henson <steve openssl.org>
Reviewed by: rpluem

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

15 years agoWindows: add apr_dbd_odbc project to Visual Studio workspace .dsw file
Thomas J. Donovan [Wed, 15 Oct 2008 12:24:25 +0000 (12:24 +0000)]
Windows: add apr_dbd_odbc project to Visual Studio workspace .dsw file

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

15 years agoMinor bump when exporting mod_rewrite.h
Graham Leggett [Wed, 15 Oct 2008 10:09:33 +0000 (10:09 +0000)]
Minor bump when exporting mod_rewrite.h

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

15 years agoAlways build the odbc dbd driver on winodws, to be consistent with the apr-util default
Thomas J. Donovan [Wed, 15 Oct 2008 03:14:11 +0000 (03:14 +0000)]
Always build the odbc dbd driver on winodws, to be consistent with the apr-util default

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

15 years ago* Revert r703998.
Ruediger Pluem [Wed, 15 Oct 2008 00:53:39 +0000 (00:53 +0000)]
* Revert r703998.
  The call to apr_socket_timeout_set before apr_socket_connect already sets the
  socket to non-blocking mode because the timeout of the socket is -1 after creation. A further
  call to apr_socket_timeout_set (after the connect call does not do this, because the old
  and the new timeout are >=0). The further code expects the socket to be in non-blocking
  mode, otherwise we have regressions with ssl. This can be notified by running t/ssl/proxy
  on 2.2.x which runs much much slower with the patch applied. This does not happen
  on trunk because the socket is set back to non blocking by the core output filter
  (async write completion).

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

15 years agoExport and install the mod_rewrite.h header to ensure the optional
Graham Leggett [Tue, 14 Oct 2008 22:39:32 +0000 (22:39 +0000)]
Export and install the mod_rewrite.h header to ensure the optional
rewrite_mapfunc_t and ap_register_rewrite_mapfunc functions are
available to third party modules.

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

15 years ago* Make the connection timeout to backends work by temporarily setting the
Ruediger Pluem [Mon, 13 Oct 2008 10:06:28 +0000 (10:06 +0000)]
* Make the connection timeout to backends work by temporarily setting the
  socket to non blocking mode.

Submitted by: Matt Stevenson <mavricknzwork yahoo.com>
Reviewed by: rpluem

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

15 years agoNote modules such as mod_headers affect %{Foobar}i
Takashi Sato [Mon, 13 Oct 2008 10:01:50 +0000 (10:01 +0000)]
Note modules such as mod_headers affect %{Foobar}i

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

15 years agoupdate transformation
André Malo [Sun, 12 Oct 2008 11:12:52 +0000 (11:12 +0000)]
update transformation

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

15 years agoadd LastChangedRevision and eol-style
Takashi Sato [Sat, 11 Oct 2008 00:47:41 +0000 (00:47 +0000)]
add LastChangedRevision and eol-style

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

15 years agoupdate Japanese translation
Takashi Sato [Sat, 11 Oct 2008 00:35:03 +0000 (00:35 +0000)]
update Japanese translation

Submitted by: kawai
Reviewed by: takashi

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

15 years agofix MaxClients description (r692325) suggested by wrowe
Takashi Sato [Fri, 10 Oct 2008 12:39:40 +0000 (12:39 +0000)]
fix MaxClients description (r692325) suggested by wrowe

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

15 years agoupdate transformation
Nilgun Belma Buguner [Fri, 10 Oct 2008 06:41:32 +0000 (06:41 +0000)]
update transformation

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

15 years agoupdate for sync with English doc.
Nilgun Belma Buguner [Fri, 10 Oct 2008 06:38:15 +0000 (06:38 +0000)]
update for sync with English doc.

Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
Reviewed by:  Orhan Berent <berent belgeler.org>

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

15 years agoNew Turkish translation
Nilgun Belma Buguner [Fri, 10 Oct 2008 05:53:32 +0000 (05:53 +0000)]
New Turkish translation

Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
Reviewed by:  Orhan Berent <berent belgeler.org>

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

15 years agoFix AuthzMergeRules directive name and an addl typo.
Eric Covener [Thu, 9 Oct 2008 21:26:56 +0000 (21:26 +0000)]
Fix AuthzMergeRules directive name and an addl typo.

Submitted by Dan Poirier <poirier pobox.com>

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

15 years ago* Recheck again if idle workers are still available when we are signaled that
Ruediger Pluem [Wed, 8 Oct 2008 13:32:07 +0000 (13:32 +0000)]
* Recheck again if idle workers are still available when we are signaled that
  they are. This is needed since it can happen that we are signaled by a
  worker thread that went idle but received a context switch before it could
  tell us. If it does signal us later once it is on CPU again there might be
  no idle worker left. See
  https://issues.apache.org/bugzilla/show_bug.cgi?id=45605#c4

PR: 45605
Submitted by: Denis Ustimenko <denusk gmail.com>
Reviewed by: rpluem

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

15 years agobackported 2.2.10 - r702502
Jim Jagielski [Tue, 7 Oct 2008 15:04:13 +0000 (15:04 +0000)]
backported 2.2.10 - r702502

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

15 years agono AuthzLDAPAuthoritative in trunk, because authz uses a provider API
Eric Covener [Sat, 4 Oct 2008 14:44:53 +0000 (14:44 +0000)]
no AuthzLDAPAuthoritative in trunk, because authz uses a provider API

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

15 years agotranslation improvements (feedbacks)
Nilgun Belma Buguner [Sat, 27 Sep 2008 13:23:57 +0000 (13:23 +0000)]
translation improvements (feedbacks)

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

15 years agoReimplement ThreadStackSize to behave as on unix for any
William A. Rowe Jr [Fri, 26 Sep 2008 20:15:10 +0000 (20:15 +0000)]
Reimplement ThreadStackSize to behave as on unix for any
Windows 2003/2008 (XP/Vista) servers.  Virtual allocations
will only consume pages once referenced, while the page
alignment will vary by ThreadStackSize setting so that the
maximum number of threads and minimum stack VM profile will
be wasted.

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

15 years agoThe last two of several helper threads which do not need a default
William A. Rowe Jr [Fri, 26 Sep 2008 20:13:29 +0000 (20:13 +0000)]
The last two of several helper threads which do not need a default
1GB stack (but where on earth does 1000 come from?  nonsense.)

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

15 years agoThe next of several helper threads which do not need a default 1GB stack
William A. Rowe Jr [Fri, 26 Sep 2008 20:11:27 +0000 (20:11 +0000)]
The next of several helper threads which do not need a default 1GB stack

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

15 years agoThe first of several helper threads which do not need a default 1GB stack
William A. Rowe Jr [Fri, 26 Sep 2008 20:10:41 +0000 (20:10 +0000)]
The first of several helper threads which do not need a default 1GB stack

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

15 years agoTrack the internal stack_res_flag for properly constraining
William A. Rowe Jr [Fri, 26 Sep 2008 20:08:15 +0000 (20:08 +0000)]
Track the internal stack_res_flag for properly constraining
win32 stacksize on windows 2003 (xp) and 2008 (vista).

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

15 years agoCoredumpDir useless on win32; implementing toolhelp.dll is nontrivial
William A. Rowe Jr [Fri, 26 Sep 2008 20:06:09 +0000 (20:06 +0000)]
CoredumpDir useless on win32; implementing toolhelp.dll is nontrivial

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

15 years agopre-translation improvements
Nilgun Belma Buguner [Wed, 24 Sep 2008 09:41:47 +0000 (09:41 +0000)]
pre-translation improvements

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

15 years agopre-translation improvements
Nilgun Belma Buguner [Tue, 23 Sep 2008 22:58:56 +0000 (22:58 +0000)]
pre-translation improvements

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

15 years agoAdd dummy ap_mpm_register_timed_callback for other MPMs besides Event.
Paul Querna [Sat, 20 Sep 2008 22:04:03 +0000 (22:04 +0000)]
Add dummy ap_mpm_register_timed_callback for other MPMs besides Event.

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

15 years agoFor timeouts, behave as before and not drop.
Jim Jagielski [Sat, 20 Sep 2008 13:44:26 +0000 (13:44 +0000)]
For timeouts, behave as before and not drop.
From Adam Woodworth <mirkperl gmail.com>

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

15 years agoIntroduce Suspendable Requests to the Event MPM.
Paul Querna [Sat, 20 Sep 2008 11:58:08 +0000 (11:58 +0000)]
Introduce Suspendable Requests to the Event MPM.

Using this basic framework, you can return SUSPENDED from an HTTP Handler,
and then register a callback that is invoked by the MPM at a later time.

This initial version only supports _timers_ as callbacks, but in the future I
would like to add things like wait for socket activity, on a socket specified by
the handler.

Once in a callback, It is then the responsibility of the callback fucntion
to finish the HTTP Request handling, but this alows you to do cool things like
a fully async proxy, COMET support, or even rate limiting.

To prove I'm not insane, I've inlcuded an example module, mod_dialup.

You can configure it like this:
<Location "/docs">
  ModemStandard "V.32"
</Location>

And for static files inside that path, you will be rate limited to V.32 speeds,
aka 9.6 kilobits/second.

Does anyone besides Rüdiger read commit emails :-) ?

I know there are likely huge problems with this, but I would like to see how far
we can push the Event MPM, figure out what to do better, if there is anything,
and then really dive into the 3.0 development before ApacheCon.

* server/mpm/experimental/event/fdqueue.h:
    (timer_event_t): New structure to hold timer events and callback functions.

* server/mpm/experimental/event/fdqueue.c
    (ap_queue_empty): Modify to also look at Timer Ring.

    (ap_queue_init): Initialize Timer Ring.

    (ap_queue_push_timer): New function, pushes a timer event into the queue.

    (ap_queue_pop_something): Renamed function, returns a timer event or
        a socket/pool for a worker thread to run.

* server/mpm/experimental/event/event.c
    (process_socket): If the connection is in SUSPENDED state, don't force it
        into linger mode yet, the callback will have to take care of that.

    (push_timer2worker): New shortcut function, pushes timer event into queue
        for a worker to run.

    (timer_free_ring): New global data structure to recycle memory used by
        timer events.

    (timer_ring): New global data structure to hold active timer events.

    (g_timer_ring_mtx): Thread mutex to protect timer event data structures.

    (ap_mpm_register_timed_callback): New Function, registers a callback to be
        invoked by the MPM at a later time.

    (listener_thread): Calculate our wakeup time based on the upcoming Event
        Queue, and after pollset_poll runs, push any Timers that have passed
        onto worker threads to run.

    (worker_thread): Call new queue pop method, and if the Timer Event is
        non-null, invoke the callback.  Once the callback is done, push the
        structure onto the timer_free_ring, to be recycled.

    (child_main): Initialize new mutex and ring structures.

* server/config.c
    (ap_invoke_handler): Allow SUSPENDED aa valid return code from handlers.

* modules/http/http_core.c
    (ap_process_http_async_connection): Don't close the connection when in
        SUSPENDED state.

* modules/http/http_request.c
    (ap_process_request_after_handler): New function, body pulled from the old,
        ap_process_async_request.  Split to let handlers invoke this so they
        don't need to know all of the details of finishing a request.

    (ap_process_async_request): If the handler returns SUSPENDED, don't do
        anything but return.

* include/ap_mmn.h: Bump MMN.

* include/ap_mpm.h
    (ap_mpm_register_timed_callback): New function.

* include/httpd.h:
    (SUSPENDED): New return code for handlers.
    (request_rec::invoke_mtx): New mutex to protect callback invokcations
        from being run before the original handler finishes running.
    (conn_state_e): Add a suspended state.

* include/http_request.h
    (ap_process_request_after_handler): New function to make it easier for
        handlers to finish the HTTP Request.

* modules/test/config.m4: Add mod_dialup to build.

* modules/test/mod_dialup.c: New rate limiting module, requires the Event MPM
    to work.

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

15 years agoCleanup the explanation.
Jim Jagielski [Fri, 19 Sep 2008 15:18:44 +0000 (15:18 +0000)]
Cleanup the explanation.

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

15 years agoAllow for the smax param to be 0, so that all connections
Jim Jagielski [Fri, 19 Sep 2008 13:43:48 +0000 (13:43 +0000)]
Allow for the smax param to be 0, so that all connections
are available to be dropped, should they be idle long
enough.
PR 43371

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

15 years agor696758
Jim Jagielski [Thu, 18 Sep 2008 18:44:28 +0000 (18:44 +0000)]
r696758

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

15 years agoAlways send body (zero size at least) whenever C-L is present in the request
Mladen Turk [Thu, 18 Sep 2008 09:35:30 +0000 (09:35 +0000)]
Always send body (zero size at least) whenever C-L is present in the request

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

15 years agoIn 2.2
Jim Jagielski [Wed, 17 Sep 2008 19:54:51 +0000 (19:54 +0000)]
In 2.2

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

15 years agobackported
Eric Covener [Wed, 17 Sep 2008 16:53:29 +0000 (16:53 +0000)]
backported

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

15 years agoPR45806 Fixed break tags. Submitted by poirier pobox.com
Vincent Bray [Wed, 17 Sep 2008 14:19:43 +0000 (14:19 +0000)]
PR45806 Fixed break tags. Submitted by poirier pobox.com

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

15 years ago* INSTALL: Add a blurb about --with-included-apr option.
Justin Erenkrantz [Tue, 16 Sep 2008 18:50:01 +0000 (18:50 +0000)]
* INSTALL: Add a blurb about --with-included-apr option.

Submitted by: Tim Bray
Tweaked by: jerenkrantz

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

15 years agoPatch from Dan Poirier. Grammar updates. Cheers Dan.
Tony Stevenson [Tue, 16 Sep 2008 15:34:41 +0000 (15:34 +0000)]
Patch from Dan Poirier. Grammar updates.  Cheers Dan.

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

15 years agodespite this being mod_ldap and not mod_authnz_ldap, make the examples
Eric Covener [Tue, 16 Sep 2008 13:50:43 +0000 (13:50 +0000)]
despite this being mod_ldap and not mod_authnz_ldap, make the examples
a little more complete/self-contained.

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

15 years ago"AuthzLDAPAuthoritative off" isn't required to accept valid-user anymore
Eric Covener [Tue, 16 Sep 2008 13:41:51 +0000 (13:41 +0000)]
"AuthzLDAPAuthoritative off" isn't required to accept valid-user anymore
(and these are SDK/SSL examples, not mod_authnz_ldap examples)

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

15 years agobackported in r695234
Eric Covener [Sun, 14 Sep 2008 16:57:23 +0000 (16:57 +0000)]
backported in r695234

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

15 years agoupdate transformation
Nilgun Belma Buguner [Sat, 13 Sep 2008 05:31:51 +0000 (05:31 +0000)]
update transformation

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

15 years agoReorder sections as per the DTD
Nick Kew [Fri, 12 Sep 2008 09:20:21 +0000 (09:20 +0000)]
Reorder sections as per the DTD

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

15 years agoupdate for sync with English docs.
Nilgun Belma Buguner [Fri, 12 Sep 2008 06:46:14 +0000 (06:46 +0000)]
update for sync with English docs.

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

15 years ago* Replace control characters in output strings with more pleasant strings.
Ruediger Pluem [Thu, 11 Sep 2008 19:29:06 +0000 (19:29 +0000)]
* Replace control characters in output strings with more pleasant strings.

Submitted by: Basant Kumar kukreja <Basant.Kukreja Sun.COM>

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

15 years ago* Fix potential segfault if flags remains NULL.
Ruediger Pluem [Wed, 10 Sep 2008 08:04:42 +0000 (08:04 +0000)]
* Fix potential segfault if flags remains NULL.

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

15 years ago* Allow empty substitute patterns (to remove data from the stream), but
Ruediger Pluem [Wed, 10 Sep 2008 08:00:58 +0000 (08:00 +0000)]
* Allow empty substitute patterns (to remove data from the stream), but
  disallow empty search patterns.

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

15 years ago* Use send_bucket_downstream to send data down the chain instead of creating
Ruediger Pluem [Tue, 9 Sep 2008 19:58:12 +0000 (19:58 +0000)]
* Use send_bucket_downstream to send data down the chain instead of creating
  a brigade each time.

PR: 45687
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem

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

15 years agostash the brigade used by send_bucket_downstream in the filter context for
Greg Ames [Tue, 9 Sep 2008 18:59:40 +0000 (18:59 +0000)]
stash the brigade used by send_bucket_downstream in the filter context for
reuse.

Submitted by: Dan Poirier <poirier pobox.com>

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

15 years ago* If CPING fails retry once more with a fresh TCP connection. If this fails
Ruediger Pluem [Tue, 9 Sep 2008 07:25:56 +0000 (07:25 +0000)]
* If CPING fails retry once more with a fresh TCP connection. If this fails
  as well give up.

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

15 years agomod_authnz_ldap: avoid returning NULL env vars
Nick Kew [Tue, 9 Sep 2008 00:52:03 +0000 (00:52 +0000)]
mod_authnz_ldap: avoid returning NULL env vars
PR 39045

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

15 years ago* Fix compiler warning (missing sentinel in function call).
Ruediger Pluem [Mon, 8 Sep 2008 19:50:40 +0000 (19:50 +0000)]
* Fix compiler warning (missing sentinel in function call).

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

15 years agomod_mime: don't adjust case in filename components we don't use
Nick Kew [Mon, 8 Sep 2008 15:52:59 +0000 (15:52 +0000)]
mod_mime: don't adjust case in filename components we don't use
PR 43250, patch by Basant Kumar Kukreja

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

15 years agoUpdate xforms... mostly mod_sed related
Jim Jagielski [Mon, 8 Sep 2008 14:57:29 +0000 (14:57 +0000)]
Update xforms... mostly mod_sed related

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

15 years agotypo
Jim Jagielski [Mon, 8 Sep 2008 14:52:46 +0000 (14:52 +0000)]
typo

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

15 years agoAdd in useful feature. %k which logs the keepalives
Jim Jagielski [Mon, 8 Sep 2008 14:52:21 +0000 (14:52 +0000)]
Add in useful feature. %k which logs the keepalives
value.
PR: 45762
        Dan Poirier <poirier@pobox.com>

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

15 years agoTypo fix
Nick Kew [Mon, 8 Sep 2008 14:49:09 +0000 (14:49 +0000)]
Typo fix

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

15 years agoRelax checks on HTTP Response status line from a backend.
Nick Kew [Mon, 8 Sep 2008 14:20:11 +0000 (14:20 +0000)]
Relax checks on HTTP Response status line from a backend.
PR#44995 - Rainer Jung

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

15 years agoEnsure it's abundently clear that these scripts may be bad news
William A. Rowe Jr [Sat, 6 Sep 2008 20:26:15 +0000 (20:26 +0000)]
Ensure it's abundently clear that these scripts may be bad news
with stupid-assed clients which contravine their prime directives,
such as content-type, or do not harm humans.

Flaws such as utf-7 decoding ensure that even txt->html transforms
are insufficient.

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

15 years agoPR 45687: Detect and pass along error buckets
Greg Ames [Fri, 5 Sep 2008 22:21:36 +0000 (22:21 +0000)]
PR 45687: Detect and pass along error buckets

Submitted by: Dan Poirier <poirier pobox.org>
Reviewed by:  trawick

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

15 years agoupdate Japanese translation
Takashi Sato [Fri, 5 Sep 2008 15:50:36 +0000 (15:50 +0000)]
update Japanese translation

Submitted by: kawai
Reviewed by: takashi

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

15 years agoFix MaxClients description to adapt threading MPM.
Takashi Sato [Fri, 5 Sep 2008 03:26:14 +0000 (03:26 +0000)]
Fix MaxClients description to adapt threading MPM.
(This is still inaccurate for trunk Event MPM.)

Submitted by Dan Poirier <poirier pobox.com>
PR: 45747

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

15 years agoCommit mod_sed: enable filtering of HTTP Requests and Responses through sed
Nick Kew [Tue, 2 Sep 2008 23:01:47 +0000 (23:01 +0000)]
Commit mod_sed: enable filtering of HTTP Requests and Responses through sed

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

15 years agomod_auth_form: Make sure that basic authentication is correctly
Graham Leggett [Sat, 30 Aug 2008 13:48:47 +0000 (13:48 +0000)]
mod_auth_form: Make sure that basic authentication is correctly
faked directly after login.

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

15 years agoRemove trailing spaces (on the insistence of Eclipse).
Graham Leggett [Sat, 30 Aug 2008 13:47:05 +0000 (13:47 +0000)]
Remove trailing spaces (on the insistence of Eclipse).

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

15 years agomod_session_cookie, mod_session_dbd: Make sure cookies are set both
Graham Leggett [Sat, 30 Aug 2008 13:37:52 +0000 (13:37 +0000)]
mod_session_cookie, mod_session_dbd: Make sure cookies are set both
within the output headers and error output headers, so that the
session is maintained across redirects.

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

15 years agomod_auth_form: Make sure the logged in user is populated correctly
Graham Leggett [Sat, 30 Aug 2008 11:11:21 +0000 (11:11 +0000)]
mod_auth_form: Make sure the logged in user is populated correctly
after a form login. Fixes a missing REMOTE_USER variable directly
following a login.

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

15 years agoThe cookie attributes to fix cookie removal required an MMN bump
Graham Leggett [Fri, 29 Aug 2008 21:57:44 +0000 (21:57 +0000)]
The cookie attributes to fix cookie removal required an MMN bump

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

15 years agomod_session_cookie: Make sure that cookie attributes are correctly
Graham Leggett [Fri, 29 Aug 2008 21:49:27 +0000 (21:49 +0000)]
mod_session_cookie: Make sure that cookie attributes are correctly
included in the blank cookie when cookies are removed. This fixes an
inability to log out when using mod_auth_form.

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

15 years agoAdd option to insert something in autoindex head.
Nick Kew [Tue, 26 Aug 2008 22:10:06 +0000 (22:10 +0000)]
Add option to insert something in autoindex head.

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

15 years agoFix typo in r689224 (thanks rpluem for spotting it)
Nick Kew [Tue, 26 Aug 2008 21:40:29 +0000 (21:40 +0000)]
Fix typo in r689224 (thanks rpluem for spotting it)

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

15 years agoTry to get a meaningful error message when dbd_open fails
Nick Kew [Tue, 26 Aug 2008 21:03:46 +0000 (21:03 +0000)]
Try to get a meaningful error message when dbd_open fails

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

15 years agoPermit --with-apr=/path/to/apr alone, where the default path will
William A. Rowe Jr [Fri, 22 Aug 2008 04:45:02 +0000 (04:45 +0000)]
Permit --with-apr=/path/to/apr alone, where the default path will
be handled by replacing all /apr path segments with /apr-util
(or /aprutil) to handle nearly any developer's path scheme.  One
rare exception would be /asf/srcs/aprutil/trunk/apr-util or similar
where both /aprutil and /apr-util path segments exist.

So for example --with-apr=../apr-1.3 would find either ../apr-util-1.3
or ../aprutil-1.3 before looking for srclib/apr-util or ../apr-util.

These refer to source trees.  httpd ./configure deserves a similar
feature to use --with-apr= for an installed apr-util lib tree.

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

15 years agoMove struct definition out of the header file since it is only used in this source...
Sander Temme [Thu, 21 Aug 2008 18:19:21 +0000 (18:19 +0000)]
Move struct definition out of the header file since it is only used in this source file

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

15 years agoxforms
Jim Jagielski [Thu, 21 Aug 2008 13:37:33 +0000 (13:37 +0000)]
xforms

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

15 years agoxform for scolon-is-sticky-session-path-delim docs
Jim Jagielski [Thu, 21 Aug 2008 13:36:54 +0000 (13:36 +0000)]
xform for scolon-is-sticky-session-path-delim docs

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