]> granicus.if.org Git - apache/log
apache
22 years agoAdded logic to the worker MPM to skip the poll before accept
Brian Pane [Wed, 30 Jan 2002 06:33:18 +0000 (06:33 +0000)]
Added logic to the worker MPM to skip the poll before accept
if there's only one listener socket (based on the implementation
in the prefork MPM).  This also enables us to do single-listener
unserialized accept

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

22 years ago Need the long name of the build model for ssl/abs (e.g. Release/Debug).
William A. Rowe Jr [Wed, 30 Jan 2002 05:17:58 +0000 (05:17 +0000)]
  Need the long name of the build model for ssl/abs (e.g. Release/Debug).

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

22 years agomake it compile on win32
Ian Holsman [Wed, 30 Jan 2002 04:37:29 +0000 (04:37 +0000)]
make it compile on win32

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

22 years agoCleanup some fallout from the recent install_transport_filters commit.
Bill Stoddard [Wed, 30 Jan 2002 04:34:11 +0000 (04:34 +0000)]
Cleanup some fallout from the recent install_transport_filters commit.
Deprecate ap_proxy_pre_http_connection.

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

22 years agoSimplify the exit paths of ap_rgetline by creating a second brigade for
Justin Erenkrantz [Wed, 30 Jan 2002 02:06:09 +0000 (02:06 +0000)]
Simplify the exit paths of ap_rgetline by creating a second brigade for
use when we do AP_MODE_SPECULATIVE.  This allows us to delete the
brigades earlier.

(In practice, it really doesn't matter if we delete the brigade or not
since it will be destroyed when it's pool is destroyed, but we'll try
to be nice.)

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

22 years agoNow how did this slip by. Fixes a segfault. I tested this code, really...
Bill Stoddard [Wed, 30 Jan 2002 01:57:53 +0000 (01:57 +0000)]
Now how did this slip by. Fixes a segfault. I tested this code, really...

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

22 years agoget prefork to build again.
Greg Ames [Tue, 29 Jan 2002 22:31:25 +0000 (22:31 +0000)]
get prefork to build again.

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

22 years agonew directive 'ProxyPreserveHost' which allows the incoming host line to
Ian Holsman [Tue, 29 Jan 2002 21:08:37 +0000 (21:08 +0000)]
new directive 'ProxyPreserveHost'  which allows the incoming host line to
be sent to the proxied server.

Submitted by: g.russell@ieee.org (1.3 version)
Reviewed by: Ian Holsman/Graham Legget/Chuck Murcko

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

22 years agojust make it a bit more explicit
Ian Holsman [Tue, 29 Jan 2002 19:33:25 +0000 (19:33 +0000)]
just make it a bit more explicit

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

22 years agoThis patch restores most of Ryan's patch (11/12/2001) to remove the
Bill Stoddard [Tue, 29 Jan 2002 19:02:04 +0000 (19:02 +0000)]
This patch restores most of Ryan's patch (11/12/2001) to remove the
client_socket from the conn_rec.  Diffs from Ryan's patch include:

- rename the create_connection hook to install_transport_filters
- move the point of invocation of the hook till after the call to
  after ap_update_vhost_given_ip to enable the hook to use vhost
  config info in its decision making.

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

22 years agoconfiguration change.
Ian Holsman [Tue, 29 Jan 2002 19:00:45 +0000 (19:00 +0000)]
configuration change.
allow a '!' directive to stop proxying these requests
eg.

  ProxyPass /services/images/     !
  ProxyPass /services/            http://service-machine/services/

which will stop requests to /services/images/ from being proxied

Submitted by: Jukka Pihl <jukka.pihl@entirem.com>
Reviewed by: Ian Holsman, Graham Legget, Chuck Murcko

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

22 years ago BuildBin never made it to this home. Makefile.win got lost, since it
William A. Rowe Jr [Tue, 29 Jan 2002 18:19:17 +0000 (18:19 +0000)]
  BuildBin never made it to this home.  Makefile.win got lost, since it
  would have been invoked from another path, trying to validate that the
  apr and apr-util repositories had been checked out.  Too much trouble :)

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

22 years ago Move the _tryssl targets across to the BuildBin target
William A. Rowe Jr [Tue, 29 Jan 2002 18:16:54 +0000 (18:16 +0000)]
  Move the _tryssl targets across to the BuildBin target

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

22 years ago Trust MS to manage it's project.
William A. Rowe Jr [Tue, 29 Jan 2002 18:15:13 +0000 (18:15 +0000)]
  Trust MS to manage it's project.

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

22 years ago By popular demand and some of my own observations - here is a build
William A. Rowe Jr [Tue, 29 Jan 2002 18:13:33 +0000 (18:13 +0000)]
  By popular demand and some of my own observations - here is a build
  target one can use as a dummy, without 'installing binaries'.  Now
  Win32's makefile.win will simply kick off BuildBin and let it fire
  off all the targets from a command line build.  This will help to
  resolve some of the misses on incremental builds.

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

22 years agoIf the ftp proxy could not guess the output format of the ftp server's
Martin Kraemer [Tue, 29 Jan 2002 17:56:42 +0000 (17:56 +0000)]
If the ftp proxy could not guess the output format of the ftp server's
directory listing, it makes another attempt: it tries a format similar to
the output of "ls -s1" (optional whitespace followed by size, followed by
whitespace, followed by filename, where filename may contain no more whitespace).
This format works at least with one FTP server for which previously only
the (non-clickable) output was displayed.

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

22 years ago Many of our platform's apr_dir_read() aren't returning APR_FINFO_TYPE,
William A. Rowe Jr [Tue, 29 Jan 2002 17:46:30 +0000 (17:46 +0000)]
  Many of our platform's apr_dir_read() aren't returning APR_FINFO_TYPE,
  so we will take the long way through (and the long way for LNK's as well.)

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

22 years ago Prepare for some changes to the .dsw - phase 1.
William A. Rowe Jr [Tue, 29 Jan 2002 17:22:20 +0000 (17:22 +0000)]
  Prepare for some changes to the .dsw - phase 1.

  Add /USEENV for msdev so the user with awk.exe in the path can resolve.

  Add _dummy: for a new compile-all target.

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

22 years agoFix handling of \r\n at the end of FTP directory listings (\r characters
Martin Kraemer [Tue, 29 Jan 2002 17:07:26 +0000 (17:07 +0000)]
Fix handling of \r\n at the end of FTP directory listings (\r characters
were left in the output and would create additional line breaks in most
browsers)

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

22 years agoFor NoProxy connections (when no backend->connection is needed), a NULL
Martin Kraemer [Tue, 29 Jan 2002 16:55:07 +0000 (16:55 +0000)]
For NoProxy connections (when no backend->connection is needed), a NULL
pointer would be dereferenced. Check it more thoroughly.

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

22 years agoScriptAlias requires mod_cgi
Joshua Slive [Tue, 29 Jan 2002 15:46:58 +0000 (15:46 +0000)]
ScriptAlias requires mod_cgi

Submitted by: TD - Sales International Holland B.V. <td@salesint.com>

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

22 years ago* Prefer compatibility with both HTML-4 and XHTML (rather than XHTML only)
Martin Kraemer [Tue, 29 Jan 2002 15:31:28 +0000 (15:31 +0000)]
* Prefer compatibility with both HTML-4 and XHTML (rather than XHTML only)
* Properly escape URIs and HTML in the FTP filename list
* Avoid a pointer underrun

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

22 years agoAdd some more apr_ types
Martin Kraemer [Tue, 29 Jan 2002 15:27:30 +0000 (15:27 +0000)]
Add some more apr_ types

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

22 years agoconst is nice
Jeff Trawick [Tue, 29 Jan 2002 12:30:52 +0000 (12:30 +0000)]
const is nice

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

22 years agoNo need to use strcpy() where a ptr assignment is ok
Martin Kraemer [Tue, 29 Jan 2002 09:09:47 +0000 (09:09 +0000)]
No need to use strcpy() where a ptr assignment is ok

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

22 years agoDon't let the default handler try to serve a raw directory. At
Jeff Trawick [Tue, 29 Jan 2002 04:54:05 +0000 (04:54 +0000)]
Don't let the default handler try to serve a raw directory.  At
best you get gibberish.  Much worse things can happen depending
on the OS.

This can happen when autoindex isn't loaded.

On AIX, I had a directory file which was reported to be 1536 bytes
in size.  mmap() failed so we went to the fall-back logic.
The first read() got 624 bytes and the next read() got 0
(supposedly EOF).  This confused us greatly, we kept allocating
buffers and reading and exercised the paging space.

Reviewed by:  Bill Rowe

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

22 years agoTake advantage of the new pre_config return value when apr_proc_detach
Aaron Bannert [Tue, 29 Jan 2002 02:41:46 +0000 (02:41 +0000)]
Take advantage of the new pre_config return value when apr_proc_detach
fails. I'll be making some changes to apr_proc_detach, and it will be
nice to be able to report runtime errors.

Tested on worker but the code changes are identical on other MPMs.

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

22 years agoAdded MOD_Auth_Digest to the build project
Bradley Nicholes [Tue, 29 Jan 2002 00:42:34 +0000 (00:42 +0000)]
Added MOD_Auth_Digest to the build project

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

22 years agoAdded some type casting to the appropriate types to avoid type mismatches
Bradley Nicholes [Tue, 29 Jan 2002 00:23:30 +0000 (00:23 +0000)]
Added some type casting to the appropriate types to avoid type mismatches
on the CodeWarrior compiler

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

22 years agoI think this was supposed to have been bumped a couple times since
Aaron Bannert [Tue, 29 Jan 2002 00:00:39 +0000 (00:00 +0000)]
I think this was supposed to have been bumped a couple times since
the 14th, and was perhaps forgotten about? In any case, it needs to
be bumped now -- pre_config hook return type has changed.

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

22 years agoMention the pre_config prototype change, and fix some grammar.
Aaron Bannert [Mon, 28 Jan 2002 23:58:27 +0000 (23:58 +0000)]
Mention the pre_config prototype change, and fix some grammar.

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

22 years agoThe pre_config hook now takes a return value. This allows modules to
Aaron Bannert [Mon, 28 Jan 2002 23:49:40 +0000 (23:49 +0000)]
The pre_config hook now takes a return value. This allows modules to
cause the server to bail out under error conditions.

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

22 years agobacking out fix for missing path info and query string. wrowe beat me to
Greg Ames [Mon, 28 Jan 2002 21:18:10 +0000 (21:18 +0000)]
backing out fix for missing path info and query string.  wrowe beat me to
it.

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

22 years agohandle_multi: pass along the original path info and query string if
Greg Ames [Mon, 28 Jan 2002 18:43:19 +0000 (18:43 +0000)]
handle_multi: pass along the original path info and query string if
we redirect due to negotiation

pointed out by: Bill Rowe

also, clarify what some code in handle_map_file is doing

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

22 years agoFix some unix socket descriptor leaks in the handler side of
Jeff Trawick [Mon, 28 Jan 2002 18:30:07 +0000 (18:30 +0000)]
Fix some unix socket descriptor leaks in the handler side of
mod_cgid (the part that runs in the server process).  Whack a
silly "close(-1)" in the handler too.

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

22 years agoFirst step: send proxy_ftp.c thru
Martin Kraemer [Mon, 28 Jan 2002 16:54:05 +0000 (16:54 +0000)]
First step: send proxy_ftp.c thru
  indent | pr -e8 -t
(no other changes)

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

22 years agoUpdate --with-mpm help text wrt available OS/2 MPM name.
Brian Havard [Mon, 28 Jan 2002 05:08:38 +0000 (05:08 +0000)]
Update --with-mpm help text wrt available OS/2 MPM name.

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

22 years agozap an unintended (and incorrect) comment that slipped in with
Jeff Trawick [Mon, 28 Jan 2002 00:49:04 +0000 (00:49 +0000)]
zap an unintended (and incorrect) comment that slipped in with
the last commit; sorry!

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

22 years agosome level of gcc seems to be confused about whether or not
Jeff Trawick [Mon, 28 Jan 2002 00:43:48 +0000 (00:43 +0000)]
some level of gcc seems to be confused about whether or not
b is used before being set; shut it up

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

22 years agofix the problem where a scoreboard init failure could leave
Jeff Trawick [Mon, 28 Jan 2002 00:41:32 +0000 (00:41 +0000)]
fix the problem where a scoreboard init failure could leave
mod_cgid stranded

a pre_mpm hook can now return failures, so problems in
ap_create_scoreboard percolate back to a place where Apache
can exit cleanly

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

22 years agooptimized away one more filter name lookup during request processing
Brian Pane [Sun, 27 Jan 2002 19:24:20 +0000 (19:24 +0000)]
optimized away one more filter name lookup during request processing

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

22 years agoReplaced some more ap_add_output_filter() calls with
Brian Pane [Sun, 27 Jan 2002 19:12:56 +0000 (19:12 +0000)]
Replaced some more ap_add_output_filter() calls with
ap_add_output_filter_handle() for efficiency

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

22 years agoRemove the create_connection hook and put the client_socket back into the
Bill Stoddard [Sun, 27 Jan 2002 12:52:08 +0000 (12:52 +0000)]
Remove the create_connection hook and put the client_socket back into the
conn_rec. The create_connection_hook has a design flaw that prevents it
from making decisions based on vhost information.

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

22 years agoAPR might not return everything we're asking for. Let that slide...
Greg Stein [Sun, 27 Jan 2002 12:39:25 +0000 (12:39 +0000)]
APR might not return everything we're asking for. Let that slide...

Submitted by: Kenny Sy <itc_kennysy@hotmail.com>

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

22 years agoAdded a note about potential performance improvements for the
Brian Pane [Sun, 27 Jan 2002 08:11:09 +0000 (08:11 +0000)]
Added a note about potential performance improvements for the
worker MPM

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

22 years ago Whoops - this patch is required by the last request.c change.
William A. Rowe Jr [Sun, 27 Jan 2002 07:49:05 +0000 (07:49 +0000)]
  Whoops - this patch is required by the last request.c change.

  Fulfills Brian Pane's suggestion that we always overallocate by one
  to make /foo/bar quickly convertable to /foo/bar/

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

22 years ago Shortcut where the resource has no language [discovered with no
William A. Rowe Jr [Sun, 27 Jan 2002 07:47:30 +0000 (07:47 +0000)]
  Shortcut where the resource has no language [discovered with no
  DefaultLanguage in cgi-bin, resolving Greg Ames' observations, we
  had a lurking segfault.]

  This begs the question, what exactly did the fn do with no language
  in terms of serving content back in 1.3.  Should be reviewed.

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

22 years ago Which PR? I can't count them all. Get QUERY_STRING and PATH_INFO
William A. Rowe Jr [Sun, 27 Jan 2002 07:44:07 +0000 (07:44 +0000)]
  Which PR?  I can't count them all.  Get QUERY_STRING and PATH_INFO
  working again.  Also rounds out our fix to work around negotiated
  directories which Greg Ames fixed; this addition in request.c simply
  shortcuts all further processing.

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

22 years agoFixed a read from a deleted brigade in the new version of
Brian Pane [Sun, 27 Jan 2002 07:30:02 +0000 (07:30 +0000)]
Fixed a read from a deleted brigade in the new version of
ap_rgetline()...

In the "folding" case, there was an ap_get_brigade() call after
the brigade had been destroyed.  I noticed this while debugging
a memory leak that showed up while testing the httpd with ab.

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

22 years agoFixed segfault in "-i" mode of ab
Brian Pane [Sun, 27 Jan 2002 06:38:25 +0000 (06:38 +0000)]
Fixed segfault in "-i" mode of ab

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

22 years ago Been bad - forgot to keep my thoughts up to date.
William A. Rowe Jr [Sun, 27 Jan 2002 05:48:31 +0000 (05:48 +0000)]
  Been bad - forgot to keep my thoughts up to date.

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

22 years agooptimization: switched to ap_add_output_filter_handle() for installation of
Brian Pane [Sun, 27 Jan 2002 02:38:45 +0000 (02:38 +0000)]
optimization: switched to ap_add_output_filter_handle() for installation of
subreq filter

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

22 years agoPerformance improvement: incorporated the use of the new
Brian Pane [Sun, 27 Jan 2002 02:13:10 +0000 (02:13 +0000)]
Performance improvement: incorporated the use of the new
ap_add_input_filter_handle() and ap_add_output_filter_handle()
functions for core filters

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

22 years agoAdded new functions ap_add_input_filter_handle() and
Brian Pane [Sun, 27 Jan 2002 01:54:54 +0000 (01:54 +0000)]
Added new functions ap_add_input_filter_handle() and
ap_add_output_filter_handle()

There are many places in the core modules where we do
ap_add_input_filter() or ap_add_output_filter() on a
hardcoded filter name (e.g., "CORE" or "BYTERANGE").
This requires a string-to-filter mapping that wastes
CPU time.  (Even though the string lookup uses a trie
for speed, it still ranks as a big consumer of CPU time
because of the large number of filters added per request.)

The new ap_add_*_filter_handle() functions will allow
us to skip the string-to-filter mapping in cases where
the module adding the filter happens to have the
ap_filter_rec_t* for the registered filter (e.g., because
it's the same module that registered the filter in the
first place).

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

22 years agoavoid a palloc of zero bytes so memory debuggers don't barf
Jeff Trawick [Sat, 26 Jan 2002 23:05:10 +0000 (23:05 +0000)]
avoid a palloc of zero bytes so memory debuggers don't barf

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

22 years agoap_rgetline(): completely ignore an empty bucket... previously the logic
Jeff Trawick [Sat, 26 Jan 2002 23:01:31 +0000 (23:01 +0000)]
ap_rgetline(): completely ignore an empty bucket...  previously the logic
               generally worked but with a memory debug build it could
               crash since some memory debuggers don't like an alloc of
               zero bytes

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

22 years agoremove one showstopper and add the next
Greg Ames [Sat, 26 Jan 2002 20:25:27 +0000 (20:25 +0000)]
remove one showstopper and add the next

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

22 years agoap_sub_req_lookup_dirent: fix mod_negotiation loop with near infinite
Greg Ames [Sat, 26 Jan 2002 20:16:01 +0000 (20:16 +0000)]
ap_sub_req_lookup_dirent: fix mod_negotiation loop with near infinite
subrequests

this function has been creating bogus subrequest URIs when there is
path_info for a long time.  They didn't matter until fixup_dir started
using them for URI subrequests, which led to a loop with ever growing
bogus internal URIs and filenames.

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

22 years agoget mod_mem_cache to compile with compilers that bother to check for
Jeff Trawick [Sat, 26 Jan 2002 12:39:49 +0000 (12:39 +0000)]
get mod_mem_cache to compile with compilers that bother to check for

  Function argument assignment between types "int*" and "long*"

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

22 years agoAdded symbol prefixing to the export list
Bradley Nicholes [Fri, 25 Jan 2002 23:38:01 +0000 (23:38 +0000)]
Added symbol prefixing to the export list

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

22 years agoGrammar police coming through
Justin Erenkrantz [Fri, 25 Jan 2002 20:21:10 +0000 (20:21 +0000)]
Grammar police coming through

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

22 years agota da
Ian Holsman [Fri, 25 Jan 2002 20:11:30 +0000 (20:11 +0000)]
ta da

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

22 years agoI haven't created the optional function to specify the cache_key yet,
Ian Holsman [Fri, 25 Jan 2002 20:09:33 +0000 (20:09 +0000)]
I haven't created the optional function to specify the cache_key yet,
That will come after this patch.

ok.. brief summary of whats changed

* new Optional Directives
* CacheMemEntrySize -- max size of a individual entry in memory
cache
* CacheIgnoreNoLastMod - so we can cache mod-included files

* it tries to figure out the size of the request based on buckets if the
content-length header isn't set

* mem_cache now caches the subprocess_env & notes tables
* the CACHE_IN/OUT/CONDITIONAL run at FTYPE_CONTENT+1, so that
all other content filters run BEFORE the cache in.

note: the code is still experimental, and we need a bit more work
mainly...
* garbage collection
* cache stats/reporting
* manual removal of a key.

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

22 years agoaxe an unused variable
Jeff Trawick [Fri, 25 Jan 2002 12:04:56 +0000 (12:04 +0000)]
axe an unused variable

don't pass uninitialized rv to ap_log_error as the error code

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

22 years ago No. I don't like this patch. I like what it does [shared scoreboard
William A. Rowe Jr [Fri, 25 Jan 2002 07:21:40 +0000 (07:21 +0000)]
  No.  I don't like this patch.  I like what it does [shared scoreboard
  for Windows, finally] but not how it's implemented.

  However it works, and is equally crufty to what already exists for
  win32 listeners and other exposed data within scoreboard.c.

  To do this right, we need to drop all the external references to data
  within the scoreboard, and add an accessor for remaining bits (such as
  Win32's need for direct access to the apr_shm_t.)  And within Win32,
  we need to stack all this _within_ the pre-mpm hook.  But those are
  missions in and of themselves.

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

22 years agoEliminate needless variable that wasn't initialized anyway.
Justin Erenkrantz [Fri, 25 Jan 2002 05:39:21 +0000 (05:39 +0000)]
Eliminate needless variable that wasn't initialized anyway.

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

22 years agoAdd another status code to ignore in the error_log.
Justin Erenkrantz [Fri, 25 Jan 2002 02:38:52 +0000 (02:38 +0000)]
Add another status code to ignore in the error_log.
(I'm really tempted to ditch this log line altogether.)

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

22 years agoshowstoppers--;
Justin Erenkrantz [Fri, 25 Jan 2002 02:23:37 +0000 (02:23 +0000)]
showstoppers--;

APR knows when to let go of those pesty kids now.

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

22 years agoTurn the log verbosity WAY down by not logging TIMEUP and EOF errors in
Justin Erenkrantz [Fri, 25 Jan 2002 02:15:09 +0000 (02:15 +0000)]
Turn the log verbosity WAY down by not logging TIMEUP and EOF errors in
read_request_line as these are very common place with HTTP keepalive
timeouts.

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

22 years agoI Heard It Through The Grapevine...
Justin Erenkrantz [Fri, 25 Jan 2002 01:21:10 +0000 (01:21 +0000)]
I Heard It Through The Grapevine...

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

22 years agoSomehow, I lost this condition when I changed to account for ap_rgetline.
Justin Erenkrantz [Fri, 25 Jan 2002 01:20:00 +0000 (01:20 +0000)]
Somehow, I lost this condition when I changed to account for ap_rgetline.

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

22 years agoChange ap_get_brigade prototype to remove *readbytes in favor of readbytes.
Justin Erenkrantz [Fri, 25 Jan 2002 01:11:47 +0000 (01:11 +0000)]
Change ap_get_brigade prototype to remove *readbytes in favor of readbytes.
If you need the length, you should be using apr_brigade_length.  This is
much more consistent.  Of all the places that call ap_get_brigade, only
one (ap_http_filter) needs the length.  This makes it now possible to
pass constants down without assigning them to a temporary variable first.

Also:
- Change proxy_ftp to use EXHAUSTIVE mode (didn't catch its -1 before)
- Fix buglet in mod_ssl that would cause it to return too much data in
  some circumstances

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

22 years agoEnable the BrowserMatch for Microsoft's DAV client -- we know it is
Greg Stein [Fri, 25 Jan 2002 00:24:47 +0000 (00:24 +0000)]
Enable the BrowserMatch for Microsoft's DAV client -- we know it is
broken.

Add a match for the WebDrive client. It is similarly broken.

Sync up the NetWare and Windows .conf files a bit.

Submitted by: Sander Striker <striker@apache.org>, Greg Stein

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

22 years agoFix some serious, hard-core breakage :-( I don't even know how it
Greg Stein [Fri, 25 Jan 2002 00:17:31 +0000 (00:17 +0000)]
Fix some serious, hard-core breakage :-(  I don't even know how it
compiled and linked.

* there is no UNIX symbol, so go back to #ifndef WIN32. that other
  platforms can pile on as needed until we have a proper mechanism.

* reinstate the liveprop callbacks and the dav_hooks_liveprop_fs
  structure. since the latter structure is referred to elsewhere in
  the file, it better be defined.

* use a "feature" name of DAV_FS_HAS_EXECUTABLE rather than
  conditionally specifying the property. convert the tests over to
  that symbol.

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

22 years agoRewrite ap_rgetline to remove the need to have an "internal" brigade stored
Justin Erenkrantz [Thu, 24 Jan 2002 23:59:51 +0000 (23:59 +0000)]
Rewrite ap_rgetline to remove the need to have an "internal" brigade stored
in the core_module structure by using the AP_MODE_SPECULATIVE filter mode
to determine if MIME-continuation should occur.

Notes:
- ap_rgetline has a new prototype.
- ap_rgetline returns APR_ENOSPC when we are out of buffer space.

All direct callers of ap_rgetline are now adjusted to handle this new API.
ap_getline will mimic the old API for now.

Reviewed by: Ryan Morgan

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

22 years agoRemove mod_auth_db since we've received enough votes (Justin, Ian, and
Justin Erenkrantz [Thu, 24 Jan 2002 23:47:31 +0000 (23:47 +0000)]
Remove mod_auth_db since we've received enough votes (Justin, Ian, and
Lars) and ample warning has been posted to dev@httpd.

mod_auth_dbm should be able to take over all functionality of mod_auth_db
with the AuthDBMType directive.

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

22 years agoSome extra tweaks to the DAV code file/path handling (to continue the
Greg Stein [Thu, 24 Jan 2002 23:11:27 +0000 (23:11 +0000)]
Some extra tweaks to the DAV code file/path handling (to continue the
platforms fixes done by wrowe).

* dav_fs_get_parent_resource(): return NULL if we're at the root of
    the URL (Location) space.

* dav_fs_dir_file_name(): make it return an error, in case we're
    passed a bad path. adjusted callers [who just ignore it for now]

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

22 years agoNever got rolled, problems with daedalus' thundering herd poll (among
Aaron Bannert [Thu, 24 Jan 2002 17:14:55 +0000 (17:14 +0000)]
Never got rolled, problems with daedalus' thundering herd poll (among
others I can't remember) weren't resolved in time.

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

22 years ago The clean solution.
William A. Rowe Jr [Thu, 24 Jan 2002 17:04:42 +0000 (17:04 +0000)]
  The clean solution.

  Divorce dav_fs from the DAV_PROPID_FS_executable property at the
  very head of this module, and drop all references as soon as we
  determine that 'our property' isn't supported.

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

22 years ago If you only mean to ask one question, why ask a dozen?
William A. Rowe Jr [Thu, 24 Jan 2002 15:31:31 +0000 (15:31 +0000)]
  If you only mean to ask one question, why ask a dozen?

Submitted by: Greg Stein

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

22 years ago Omitted this argument and const'ness. All looks well now.
William A. Rowe Jr [Thu, 24 Jan 2002 15:27:46 +0000 (15:27 +0000)]
  Omitted this argument and const'ness.  All looks well now.

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

22 years ago Cause dav_fs_get_parent_resource to fail if the file path is entirely
William A. Rowe Jr [Thu, 24 Jan 2002 15:23:58 +0000 (15:23 +0000)]
  Cause dav_fs_get_parent_resource to fail if the file path is entirely
  invalid or incomplete, or if it is root [determined by the platform's
  apr implemention].  Identified by Greg Stein.

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

22 years ago A quick hack around Aaron's patch. Win32 'supports' anon shm, but
William A. Rowe Jr [Thu, 24 Jan 2002 07:47:10 +0000 (07:47 +0000)]
  A quick hack around Aaron's patch.  Win32 'supports' anon shm, but
  Apache's implementation requires fork().

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

22 years ago Improve error reporting a bit so we might start diagnosing any faults
William A. Rowe Jr [Thu, 24 Jan 2002 06:14:35 +0000 (06:14 +0000)]
  Improve error reporting a bit so we might start diagnosing any faults
  that might be introduced.

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

22 years agoKeep track of this so we don't forget about it. It's not a showstopper,
Aaron Bannert [Thu, 24 Jan 2002 05:02:26 +0000 (05:02 +0000)]
Keep track of this so we don't forget about it. It's not a showstopper,
but it is definately irratating. I'll look into it if nobody beats me
to it.

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

22 years agoI looked at this again with a clear head and I'm much more comfortable
Aaron Bannert [Thu, 24 Jan 2002 04:52:49 +0000 (04:52 +0000)]
I looked at this again with a clear head and I'm much more comfortable
with the current solution. Thank you please drive through.

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

22 years agoBring apache in line with the new apr_file_dup2() parameter type.
Aaron Bannert [Thu, 24 Jan 2002 04:31:01 +0000 (04:31 +0000)]
Bring apache in line with the new apr_file_dup2() parameter type.

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

22 years agoLooks like a bug to me.
Cliff Woolley [Wed, 23 Jan 2002 23:15:01 +0000 (23:15 +0000)]
Looks like a bug to me.

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

22 years agoset the variable before looking at it
Jeff Trawick [Wed, 23 Jan 2002 20:55:10 +0000 (20:55 +0000)]
set the variable before looking at it

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

22 years agoThis is a showstopper. Let's remember it.
Justin Erenkrantz [Wed, 23 Jan 2002 19:13:15 +0000 (19:13 +0000)]
This is a showstopper.  Let's remember it.

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

22 years ago Our kids need a little more time here, remember, it takes a bit for
William A. Rowe Jr [Wed, 23 Jan 2002 18:34:30 +0000 (18:34 +0000)]
  Our kids need a little more time here, remember, it takes a bit for
  the kernel to simply unwind 1920 threads.

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

22 years ago one blank line for code, one huge step for legibility
William A. Rowe Jr [Wed, 23 Jan 2002 18:31:51 +0000 (18:31 +0000)]
  one blank line for code, one huge step for legibility

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

22 years ago Eliminate a large number of Win32-isms. In large part, these can apply
William A. Rowe Jr [Wed, 23 Jan 2002 18:28:05 +0000 (18:28 +0000)]
  Eliminate a large number of Win32-isms.  In large part, these can apply
  to other one-off platforms such as OS2, and immediately impact a new port
  which played by all the APR rules.

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

22 years agoAdd message-ids to ease issue tracking
Justin Erenkrantz [Wed, 23 Jan 2002 18:16:45 +0000 (18:16 +0000)]
Add message-ids to ease issue tracking

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

22 years agoJust a style update before I work on this thing any more. Removed
Aaron Bannert [Wed, 23 Jan 2002 18:11:40 +0000 (18:11 +0000)]
Just a style update before I work on this thing any more. Removed
tabs and lined up parameters and indentation.

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

22 years agoScoreboard update comming soon.
Aaron Bannert [Wed, 23 Jan 2002 17:46:36 +0000 (17:46 +0000)]
Scoreboard update comming soon.

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

22 years agoCurrently pcre/config.h and pcre/internal.h are getting installed - it
Aaron Bannert [Wed, 23 Jan 2002 07:10:16 +0000 (07:10 +0000)]
Currently pcre/config.h and pcre/internal.h are getting installed - it
seems they aren't used, and adding a rogue config.h into the include
path can cause problems for a module which picks it up.

(Better late than never -- this patch was submitted Fri, 7 Dec 2001.)

Submitted by: Joe Orton <joe@manyfish.co.uk>
Reviewed by: Aaron Bannert

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

22 years agoAlthough this patch is technically correct, I'm not happy with
Aaron Bannert [Wed, 23 Jan 2002 06:51:18 +0000 (06:51 +0000)]
Although this patch is technically correct, I'm not happy with
the way it gets things done. OTOH, it is a simple enough change
to get things working correctly for now. I will come up with
the right way to do this in the next couple days.

This patch re-enables the use of anonymous shared memory in the
scoreboard on platforms that have it.

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

22 years agodav_xml_get_cdata() is an exported function, so mark it as such with
Greg Stein [Tue, 22 Jan 2002 19:00:22 +0000 (19:00 +0000)]
dav_xml_get_cdata() is an exported function, so mark it as such with
the DAV_DECLARE macro. [ Barry Pederson <barryp@yahoo.com> ]

Apache's handling of ports is broken. Temporarily disable the port
checking in the Destination: header. [ Greg Stein ]

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

22 years agoAvoid syntax error
Martin Kraemer [Tue, 22 Jan 2002 16:40:45 +0000 (16:40 +0000)]
Avoid syntax error

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