]> granicus.if.org Git - apache/log
apache
15 years agoIntroduce modules/system, and mod_unixd.c
Nick Kew [Wed, 29 Oct 2008 16:41:10 +0000 (16:41 +0000)]
Introduce modules/system, and mod_unixd.c

mod_unixd.c is only os/unix/unixd.c, turned into a module.
(or more accurately, an ugly hack).  Work in progress, and the
old unixd will have to go once the module build stuff is in place.

This re-introduces some of the unixd stuff (set user, group and chroot)
to mpm_simple, and should work equally well with existing MPMs.
It also paves the way for alternative privilege management schemes,
which can be implemented in alternative modules: this´ll be
necessary to run mpm_simple on non-unix-family platforms, and
of interest for alternative Unix implementations.  By relegating
everything to a child_init hook, we can mix-and-match, though
weĺl need to add a regime that prevents just going right ahead
with nothing and running as root.

Round tuits permitting, we should be able to simplify unixd.h too,
and look towards eliminating it.

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

15 years agoAvoid time traveling :)
Jim Jagielski [Wed, 29 Oct 2008 13:32:58 +0000 (13:32 +0000)]
Avoid time traveling :)

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

15 years ago* include/http_core.h
Paul Querna [Wed, 29 Oct 2008 08:39:26 +0000 (08:39 +0000)]
* include/http_core.h
  (core_dir_config): Fix warning: overflow in implicit constant conversion,
    generated by core.c line 117, which sets content_md5 to '2', which is too big
    for a signed value -- but it looks like this was really meant to be unsigned.

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

15 years agoCleanup mod_dialup to compile with -std=c89 and -pedantic.
Paul Querna [Wed, 29 Oct 2008 08:33:26 +0000 (08:33 +0000)]
Cleanup mod_dialup to compile with -std=c89 and -pedantic.

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

15 years ago* modules/generators/mod_cgid.c
Paul Querna [Wed, 29 Oct 2008 08:27:01 +0000 (08:27 +0000)]
* modules/generators/mod_cgid.c
  (cgid_server): Fix warning: 'env' and 'argv0' may be used uninitialized in
    this function.

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

15 years ago* include/mod_auth.h
Paul Querna [Wed, 29 Oct 2008 08:25:58 +0000 (08:25 +0000)]
* include/mod_auth.h
  (authz_status): Remove trailing comma on enum.

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

15 years ago* modules/http/http_request.c
Paul Querna [Wed, 29 Oct 2008 08:18:45 +0000 (08:18 +0000)]
* modules/http/http_request.c
  (ap_process_async_request): Fix warning: 'return' with a value, in function
      returning void

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

15 years ago* modules/database/mod_dbd.c
Paul Querna [Wed, 29 Oct 2008 08:10:21 +0000 (08:10 +0000)]
* modules/database/mod_dbd.c
  (dbd_child_init): New function, wrapper around dbd_setup_init.
  (dbd_hooks): Call dbd_child_init instead of casting dbd_setup_init.

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

15 years ago* server/core.c: Fix implicit declaration of function 'unixd_set_rlimit' by
Paul Querna [Wed, 29 Oct 2008 08:00:50 +0000 (08:00 +0000)]
* server/core.c: Fix implicit declaration of function 'unixd_set_rlimit' by
    including unixd.h.

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

15 years agoImprove ability to compile on C90 Compilers.
Paul Querna [Wed, 29 Oct 2008 07:56:19 +0000 (07:56 +0000)]
Improve ability to compile on C90 Compilers.

* Move all variable declartions to the top of their blocks.
* Remove traiing comma on enum
* Only use C90 style comments.

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

15 years ago* server/mpm/simple/simple_io.c: s/simple_io_timeut_cb/simple_io_timeout_cb/g
Paul Querna [Tue, 28 Oct 2008 22:43:04 +0000 (22:43 +0000)]
* server/mpm/simple/simple_io.c: s/simple_io_timeut_cb/simple_io_timeout_cb/g

Noticed by: Ruediger Pluem

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

15 years ago* modules/mappers/mod_rewrite.c (do_rewritelog): Add prototype with
Joe Orton [Tue, 28 Oct 2008 20:11:43 +0000 (20:11 +0000)]
* modules/mappers/mod_rewrite.c (do_rewritelog): Add prototype with
  printf attribute flagged so that gcc -Wformat-security will pick
  up PR 46110-type errors as a warning.

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

15 years ago* Supply the per-dir parameter to the rewritelog call where it is needed.
Ruediger Pluem [Tue, 28 Oct 2008 20:02:53 +0000 (20:02 +0000)]
* Supply the per-dir parameter to the rewritelog call where it is needed.

PR: 46110

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

15 years agoupdate transformation
Takashi Sato [Tue, 28 Oct 2008 16:31:45 +0000 (16:31 +0000)]
update transformation

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

15 years ago* simple_io.c line 111 and 145 cause a build falure with --enable-maintainer-mode .
Paul Querna [Tue, 28 Oct 2008 16:06:25 +0000 (16:06 +0000)]
* simple_io.c line 111 and 145 cause a build falure with --enable-maintainer-mode .
* simple_children.c should include simple_children.h.
* simple_io_timeot_cb should be static.

Noticed by: Takashi Sato

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

15 years agofix XML errors
Takashi Sato [Tue, 28 Oct 2008 15:28:14 +0000 (15:28 +0000)]
fix XML errors

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

15 years ago* server/mpm/simple/simple_{event,run}.c: Turn off Ring Macro debugging.
Paul Querna [Tue, 28 Oct 2008 07:01:30 +0000 (07:01 +0000)]
* server/mpm/simple/simple_{event,run}.c: Turn off Ring Macro debugging.

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

15 years agoAdd a work in progress, a completely new, "Simple MPM".
Paul Querna [Tue, 28 Oct 2008 07:00:15 +0000 (07:00 +0000)]
Add a work in progress, a completely new, "Simple MPM".

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

15 years agoupdate a Japanese translation
Takashi Sato [Mon, 27 Oct 2008 15:03:00 +0000 (15:03 +0000)]
update a Japanese translation

Submitted by: kawai
Reviewed by: takashi

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

15 years ago* caching.xml.fr: fix a tag
Takashi Sato [Mon, 27 Oct 2008 12:12:16 +0000 (12:12 +0000)]
* caching.xml.fr: fix a tag
* set eol-style

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

15 years ago* Do more greedy reads in the core input filter to get more closer to the
Ruediger Pluem [Mon, 27 Oct 2008 11:39:04 +0000 (11:39 +0000)]
* Do more greedy reads in the core input filter to get more closer to the
  number of bytes requested.

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

15 years ago* modules/cache/mod_socache_dbm.c
Paul Querna [Mon, 27 Oct 2008 00:43:45 +0000 (00:43 +0000)]
* modules/cache/mod_socache_dbm.c
  (socache_dbm_init) Use AP_NEED_SET_MUTEX_PERMS to determine when we need to
    set the file permissions on the created DBM files, rather than listing
    a hodgepodge of operating systems by hand.

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

15 years ago* modules/cache/mod_socache_dbm.c: Fix compile by including unixd.h on operating
Paul Querna [Mon, 27 Oct 2008 00:40:36 +0000 (00:40 +0000)]
* modules/cache/mod_socache_dbm.c: Fix compile by including unixd.h on operating
    systems that need it, which is required for for the use of unixd_config
    inside socache_dbm_init.

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

15 years agoAdding .fr translations for suexec logs server-wide sections new_features_2_4 urlmapp...
Vincent Deffontaines [Sun, 26 Oct 2008 16:38:53 +0000 (16:38 +0000)]
Adding .fr translations for suexec logs server-wide sections new_features_2_4 urlmapping dso upgrading glossary

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

15 years agoNew french translations.
Vincent Deffontaines [Sat, 25 Oct 2008 09:18:31 +0000 (09:18 +0000)]
New french translations.

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

15 years ago* save_table needs to be declared first before it can be used.
Ruediger Pluem [Fri, 24 Oct 2008 16:00:10 +0000 (16:00 +0000)]
* save_table needs to be declared first before it can be used.

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

15 years agoAJP was dropping pre-existing cookies. Use same logic
Jim Jagielski [Fri, 24 Oct 2008 15:01:44 +0000 (15:01 +0000)]
AJP was dropping pre-existing cookies. Use same logic
as HTTP to tuck them away

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

15 years agoupdate transformation
Nilgun Belma Buguner [Thu, 23 Oct 2008 17:11:59 +0000 (17:11 +0000)]
update transformation

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

15 years agoupdate for sync with English docs.
Nilgun Belma Buguner [Thu, 23 Oct 2008 17:09:15 +0000 (17:09 +0000)]
update for sync with English docs.

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

15 years agoNew Turkish translation
Nilgun Belma Buguner [Thu, 23 Oct 2008 13:10:36 +0000 (13:10 +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@707367 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUpdate docco xforms
Jim Jagielski [Thu, 23 Oct 2008 12:28:40 +0000 (12:28 +0000)]
Update docco xforms

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

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

16 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

16 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

16 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

16 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

16 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