]> granicus.if.org Git - apache/log
apache
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

22 years ago- Add AP_MODE_SPECULATIVE support to mod_ssl
Justin Erenkrantz [Tue, 22 Jan 2002 06:33:35 +0000 (06:33 +0000)]
- Add AP_MODE_SPECULATIVE support to mod_ssl
- Protect mod_ssl from dealing with modes it doesn't recognize.

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

22 years agoIf we would exhaust the buffer entirely, set it to NULL rather than
Justin Erenkrantz [Tue, 22 Jan 2002 06:26:07 +0000 (06:26 +0000)]
If we would exhaust the buffer entirely, set it to NULL rather than
point at the end of the buffer with a length of 0.

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

22 years agoAdd Hebrew Language.
Ian Holsman [Tue, 22 Jan 2002 04:11:40 +0000 (04:11 +0000)]
Add Hebrew Language.
Shalom Zvi.

Submitted by: Zvi Har'El

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

22 years agoPatches applied to the 1.3 docs. See versions 1.36 - 1.39 of mod_include
Rich Bowen [Mon, 21 Jan 2002 03:21:26 +0000 (03:21 +0000)]
Patches applied to the 1.3 docs. See versions 1.36 - 1.39 of mod_include
in 1.3. Primarily clarification of exec cgi vs include virtual.

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

22 years agoSubmitted by: Daniel Lopez
Rich Bowen [Mon, 21 Jan 2002 02:14:50 +0000 (02:14 +0000)]
Submitted by: Daniel Lopez
LimitXMLRequestBody directive

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

22 years agoThese changes are to allow caching of subrequests via a quick_handler.
Ian Holsman [Mon, 21 Jan 2002 01:43:30 +0000 (01:43 +0000)]
These changes are to allow caching of subrequests via a quick_handler.

* Change SUBREQ_CORE so that it is a HTTP_HEADER (20) filter instead of a content filter (10)
  this allows subrequests to add content filters properly

* Change subreq handling of 'handle-include' so that it splits/passes the brigade before the subreq
  is created. (This allows quick_handler to push content back from this phase)

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

22 years agoWhen doing input filtering, get out the way of anything that we don't want
Justin Erenkrantz [Sun, 20 Jan 2002 18:53:31 +0000 (18:53 +0000)]
When doing input filtering, get out the way of anything that we don't want
to be explicitly involved in.

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

22 years agoMake core_input_filter use the new apr_brigade_split_line function.
Justin Erenkrantz [Sun, 20 Jan 2002 11:43:37 +0000 (11:43 +0000)]
Make core_input_filter use the new apr_brigade_split_line function.

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

22 years agoAdd AP_MODE_SPECULATIVE support to core_input_filter
Justin Erenkrantz [Sun, 20 Jan 2002 11:37:07 +0000 (11:37 +0000)]
Add AP_MODE_SPECULATIVE support to core_input_filter

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

22 years agoForgot to replace all german umlauts with the HTML entities.
Lars Eilebrecht [Sun, 20 Jan 2002 08:40:28 +0000 (08:40 +0000)]
Forgot to replace all german umlauts with the HTML entities.

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

22 years agoSome minor fixes to englisch new_features document.
Lars Eilebrecht [Sun, 20 Jan 2002 08:27:23 +0000 (08:27 +0000)]
Some minor fixes to englisch new_features document.

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

22 years agoUpdate german new_features document.
Lars Eilebrecht [Sun, 20 Jan 2002 08:26:46 +0000 (08:26 +0000)]
Update german new_features document.
Fixed some typos, markup errors and translations.

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

22 years agoAdd german variant of the 'new features' document (original version from Simon).
Lars Eilebrecht [Sun, 20 Jan 2002 06:56:06 +0000 (06:56 +0000)]
Add german variant of the 'new features' document (original version from Simon).

Submitted by: Simon Putz <simon.putz@t-online.de>

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

22 years agoRename BeOS MPM directive RequestsPerThread to MaxRequestsPerThread.
Lars Eilebrecht [Sun, 20 Jan 2002 06:49:20 +0000 (06:49 +0000)]
Rename BeOS MPM directive RequestsPerThread to MaxRequestsPerThread.

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

22 years agoIf the provider returns an error, then we should propagate it (rather
Greg Stein [Sun, 20 Jan 2002 03:17:12 +0000 (03:17 +0000)]
If the provider returns an error, then we should propagate it (rather
than override it with HTTP_INTERNAL_SERVER_ERROR).

The specific case observed was a provider issuing a redirect.

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

22 years agoGet rid of a dangling phrase that serves no real purpose.
Joshua Slive [Sat, 19 Jan 2002 17:44:08 +0000 (17:44 +0000)]
Get rid of a dangling phrase that serves no real purpose.

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

22 years agoThis example doesn't really do what it claims. Instead, lets make it simpler
Joshua Slive [Sat, 19 Jan 2002 17:39:48 +0000 (17:39 +0000)]
This example doesn't really do what it claims.  Instead, lets make it simpler
by discussing ONLY the .htaccess issue.  The other issue is covered by the
next example.

PR: 9523

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

22 years agoanother note on the mod_cgid leaky pipes
Jeff Trawick [Sat, 19 Jan 2002 15:31:31 +0000 (15:31 +0000)]
another note on the mod_cgid leaky pipes

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

22 years agoclean up a bunch of warnings
Jeff Trawick [Sat, 19 Jan 2002 12:16:48 +0000 (12:16 +0000)]
clean up a bunch of warnings

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

22 years agoRecord my suggestion.
Justin Erenkrantz [Sat, 19 Jan 2002 08:14:34 +0000 (08:14 +0000)]
Record my suggestion.

(I'm *not* volunteering, but I think that'd be the way to go.  It'd
require substantial changes to how we handle binary builds.)

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

22 years agoInput filtering prototype change: Socket blocking type should be
Justin Erenkrantz [Sat, 19 Jan 2002 07:45:18 +0000 (07:45 +0000)]
Input filtering prototype change: Socket blocking type should be
separate from the input filter mode type.

We also no longer look at readbytes to determine the method of
filter operation.  This makes the use of filters more obvious and
allows a wider range of options for input filters modes.

To start with, the new input filter modes are:

AP_MODE_READBYTES (no more than *readbytes returned)
AP_MODE_GETLINE (old *readbytes == 0 case)
AP_MODE_EATCRLF (old AP_MODE_PEEK)
AP_MODE_SPECULATIVE (will be used in a future ap_getline rewrite)
AP_MODE_EXHAUSTIVE (old *readbytes == -1 case)
AP_MODE_INIT (special case for NNTP over SSL)

The block parameter is an apr_read_type_e: APR_BLOCK_READ, APR_NONBLOCK_READ

This also allows cleanup of mod_ssl's handling in the getline case.

Reviewed by: Ryan Bloom (concept), Greg Stein (concept)

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

22 years agothe load spikes seem to be gone.
Greg Ames [Sat, 19 Jan 2002 05:56:20 +0000 (05:56 +0000)]
the load spikes seem to be gone.

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