]> granicus.if.org Git - apache/log
apache
22 years ago Fix Restart and Stop from the service taskbar list.
William A. Rowe Jr [Fri, 19 Apr 2002 19:19:44 +0000 (19:19 +0000)]
  Fix Restart and Stop from the service taskbar list.

PR: 7930
Obtained from: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7930
Submitted by: David Shane Holden <dpejesh@yahoo.com>
Reviewed by: Mladen Turk, William Rowe

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

22 years ago Moved the call to apr_mmap_dup outside the error branch so
Paul J. Reder [Fri, 19 Apr 2002 19:16:23 +0000 (19:16 +0000)]
 Moved the call to apr_mmap_dup outside the error branch so
 that it would actually get called. This fixes a core dump
 at init everytime you use the MMapFile directive. [Paul J. Reder]

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

22 years agoTrigger an error when a LoadModule directive attempts to
Jeff Trawick [Fri, 19 Apr 2002 18:31:20 +0000 (18:31 +0000)]
Trigger an error when a LoadModule directive attempts to
load a module which is built-in.  This is a common error when
switching from a DSO build to a static build.

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

22 years agohot hot hot
Jeff Trawick [Fri, 19 Apr 2002 18:21:45 +0000 (18:21 +0000)]
hot hot hot

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

22 years ago SOCKETs are HANDLEs, but they type mismatch. This fix has now been
William A. Rowe Jr [Fri, 19 Apr 2002 17:51:31 +0000 (17:51 +0000)]
  SOCKETs are HANDLEs, but they type mismatch.  This fix has now been
  verified by the vast majority of folks complaining about the "Not a
  handle" failures in WSADuplicateHandle, later in the code flow.

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

22 years agofix a spelling error in a comment
Jeff Trawick [Fri, 19 Apr 2002 16:04:24 +0000 (16:04 +0000)]
fix a spelling error in a comment

Submitted by: Stas Bekman
Reviewed by: Jeff Trawick

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

22 years agoChange instdso.sh to use libtool --install everywhere and then
Jeff Trawick [Fri, 19 Apr 2002 14:04:30 +0000 (14:04 +0000)]
Change instdso.sh to use libtool --install everywhere and then
clean up some stray files and symlinks that libtool leaves around
on some platforms.  This gets subversion building properly since
it needed a re-link to be performed by libtool at install time,
and the old instdso.sh logic to simply cp the DSO didn't handle
that requirement.

Submitted by: Sander Striker
Reviewed by:  Jeff Trawick

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

22 years agofix a typo in a comment for ap_get_client_block()
Jeff Trawick [Fri, 19 Apr 2002 11:33:29 +0000 (11:33 +0000)]
fix a typo in a comment for ap_get_client_block()

Submitted by: Stas Bekman
Reviewed by: Jeff Trawick

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

22 years agoSome code transformations to improve the generated assembly
Brian Pane [Fri, 19 Apr 2002 08:02:00 +0000 (08:02 +0000)]
Some code transformations to improve the generated assembly
code within the critical region inside the spin locks.  (Shortening
this code path reduces the probability that we'll have to spin.)

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

22 years agoReplaced the mutex around the idle worker stack with
Brian Pane [Fri, 19 Apr 2002 06:33:08 +0000 (06:33 +0000)]
Replaced the mutex around the idle worker stack with
atomic compare-and-swap loops

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

22 years agoSwitch ap_http_filter to use ap_get_brigade and apr_brigade_flatten
Justin Erenkrantz [Thu, 18 Apr 2002 22:50:54 +0000 (22:50 +0000)]
Switch ap_http_filter to use ap_get_brigade and apr_brigade_flatten
instead of ap_getline - this prevents some odd looping issues that
can cause problems.

Also, when we call get_mime_headers to read the trailers, we need
to reset our ctx->state to BODY_NONE - there should only be MIME-header
information (followed by a blank CRLF line) - and we don't know
how much data there will be - so it is by definition BODY_NONE.

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

22 years agoSimplify last commit by only calling cat once (this should hopefully resolve
Justin Erenkrantz [Thu, 18 Apr 2002 18:44:03 +0000 (18:44 +0000)]
Simplify last commit by only calling cat once (this should hopefully resolve
rbb's concern about maintainability and still address mine about annoying /s).

Don't call mkdir when we are the top-level directory.  We *have* to have
been created before hand.

Also add this fix to the bsd_makefile section.

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

22 years agoReplace this bogus check with something that actually works. I have no
Justin Erenkrantz [Thu, 18 Apr 2002 17:51:54 +0000 (17:51 +0000)]
Replace this bogus check with something that actually works.  I have no
idea what this line is attempting to do, but it doesn't work in the
top-level Makefile - causing an error.  Therefore, take the line we use
in APR to check if a file exists.

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

22 years agoThe pedant in me wishes to see all extraneous trailing / go away.
Justin Erenkrantz [Thu, 18 Apr 2002 17:49:41 +0000 (17:49 +0000)]
The pedant in me wishes to see all extraneous trailing / go away.
So, if we are in the top-level makefile, don't add an extra trailing
slash to srcdir, builddir, or VPATH.  It's annoying.

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

22 years agoback out ill-conceived attempt to fix a segfault during
Jeff Trawick [Thu, 18 Apr 2002 17:46:20 +0000 (17:46 +0000)]
back out ill-conceived attempt to fix a segfault during
graceless termination

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

22 years agoMove the mkdir_p check outside of the cache check so that we will always
Justin Erenkrantz [Thu, 18 Apr 2002 17:29:59 +0000 (17:29 +0000)]
Move the mkdir_p check outside of the cache check so that we will always
set that variable.

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

22 years agoAllow VPATH builds to succeed when configured from an empty directory.
Justin Erenkrantz [Thu, 18 Apr 2002 09:01:31 +0000 (09:01 +0000)]
Allow VPATH builds to succeed when configured from an empty directory.

(Justin removed some unneeded changes in Makefile.in.)

Submitted by: Thom May <thom@planetarytramp.net>
Reviewed by: Justin Erenkrantz

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

22 years agoFix so that we can compile with OpenSSL 0.9.8-dev.
Justin Erenkrantz [Thu, 18 Apr 2002 08:45:34 +0000 (08:45 +0000)]
Fix so that we can compile with OpenSSL 0.9.8-dev.

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

22 years agoFix 'control reaches end of non-void function' warning
Justin Erenkrantz [Thu, 18 Apr 2002 08:27:28 +0000 (08:27 +0000)]
Fix 'control reaches end of non-void function' warning

Submitted by: Ben Collins-Sussman <sussman@collab.net>
Tweaked by:     Justin Erenkrantz

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

22 years agoCcccccchanges.
Justin Erenkrantz [Thu, 18 Apr 2002 08:24:22 +0000 (08:24 +0000)]
Ccccccchanges.

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

22 years agoPerchild has been deemed experimental and has been moved to
Justin Erenkrantz [Thu, 18 Apr 2002 08:16:56 +0000 (08:16 +0000)]
Perchild has been deemed experimental and has been moved to
server/mpm/experimental/perchild.

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

22 years agoPerchild has been deemed experimental and has been moved to
Justin Erenkrantz [Thu, 18 Apr 2002 08:04:57 +0000 (08:04 +0000)]
Perchild has been deemed experimental and has been moved to
server/mpm/experimental/perchild.

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

22 years agoSync up to the latest English version (convert to XHTML).
Yoshiki Hayashi [Thu, 18 Apr 2002 07:42:05 +0000 (07:42 +0000)]
Sync up to the latest English version (convert to XHTML).

Submitted by: Nobuyuki Morita <marika@@plum.freemail.ne.jp>
Reviewed by: Yoshiki Hayashi

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

22 years agoSync up to the latest English version (convert to XHTML).
Yoshiki Hayashi [Thu, 18 Apr 2002 07:09:12 +0000 (07:09 +0000)]
Sync up to the latest English version (convert to XHTML).

Submitted by: Nobuyuki Morita <marika@plum.freemail.ne.jp>
Reviewed by: Yoshiki Hayashi

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

22 years agoTypo.
Martin Kraemer [Thu, 18 Apr 2002 06:26:17 +0000 (06:26 +0000)]
Typo.

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

22 years agoRemove images that are no longer needed.
Joshua Slive [Wed, 17 Apr 2002 21:28:52 +0000 (21:28 +0000)]
Remove images that are no longer needed.

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

22 years ago- reference has been moved to the modules directory
Joshua Slive [Wed, 17 Apr 2002 21:23:06 +0000 (21:23 +0000)]
- reference has been moved to the modules directory
- overview is no longer needed

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

22 years agoContinuing wml removal.
Joshua Slive [Wed, 17 Apr 2002 21:21:42 +0000 (21:21 +0000)]
Continuing wml removal.

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

22 years agoRemoving old WML stuff from the ssl directory. These files are now just plain
Joshua Slive [Wed, 17 Apr 2002 21:20:25 +0000 (21:20 +0000)]
Removing old WML stuff from the ssl directory.  These files are now just plain
old html.

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

22 years agoFix seg fault when garbage collecting an expired entry. remove_entity
Bill Stoddard [Wed, 17 Apr 2002 18:52:32 +0000 (18:52 +0000)]
Fix seg fault when garbage collecting an expired entry.  remove_entity
should just remove the object from the cache and set the cleanup flag
in the object. decrement_refcount will clean the object up when the refcount
goes to zero.

Defect reported by Jean-Jacques Clar at Novell.

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

22 years ago Experimental patch that may mitigate (but not eliminate) the errors in
William A. Rowe Jr [Wed, 17 Apr 2002 16:39:12 +0000 (16:39 +0000)]
  Experimental patch that may mitigate (but not eliminate) the errors in
  [crit] (32538)An operation was attempted on something that is not a socket.
       : Parent: WSADuplicateSocket failed for socket ...
  if the particular stacks' bug is that it won't associate a handle as a
  socket if that handle was duped with DuplicateHandle().  Other bugs with
  unimplemented WSADuplicateSocket are not addressed by this patch.

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

22 years ago Introduced -E startup_logfile_name option to httpd to allow admins
William A. Rowe Jr [Wed, 17 Apr 2002 16:36:28 +0000 (16:36 +0000)]
 Introduced -E startup_logfile_name option to httpd to allow admins
     to begin logging errors immediately.  This provides Win32 users
     an alternative to sending startup errors to the event viewer, and
     allows other daemon tool authors an alternative to logging to stderr.

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

22 years agouse an independent pool for threads so that when we abandon them
Jeff Trawick [Wed, 17 Apr 2002 15:45:27 +0000 (15:45 +0000)]
use an independent pool for threads so that when we abandon them
during graceless termination the cleanups on pchild won't mess with
stuff they are still referencing

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

22 years agoWhen an exception in a worker thread initiates a child shutdown, get things
Brian Havard [Wed, 17 Apr 2002 14:55:20 +0000 (14:55 +0000)]
When an exception in a worker thread initiates a child shutdown, get things
moving sooner by sending a SIGHUP to the accept thread, breaking it out
of its accept/poll.

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

22 years agodon't call strchr(); we have a safer version -- ap_strchr_c()
Jeff Trawick [Wed, 17 Apr 2002 13:06:32 +0000 (13:06 +0000)]
don't call strchr(); we have a safer version -- ap_strchr_c()

Submitted by: Stas Bekman
Reviewed by: Jeff Trawick

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

22 years agoFix subreqs with non-defined Content-Types being served improperly.
Justin Erenkrantz [Wed, 17 Apr 2002 04:09:07 +0000 (04:09 +0000)]
Fix subreqs with non-defined Content-Types being served improperly.

If we do not know a C-T for a subreq, we *must* propogate that
non-knowledge upwards to the main request.

Previously, if you used a DirectoryIndex with a file without a C-T (say
.shtml without AddType), the r->content_type will be kept as
httpd/unix-directory when we promoted the subreq in mod_dir.  Since there
would be no handler on this file, ap_invoke_handler (config.c:355) would
set the handler to be httpd/unix-directory (which was the old C-T of the
dir).  This would then trigger the handler to become httpd/unix-directory.
mod_autoindex would then try to serve the request.  But, the filename
was propogated upwards by mod_dir's DirectoryIndex via
internal_fast_redirect - it would then return a 403 trying to generate a
mod_autoindex page for a file.

Now, we will use ap_default_type() which is correct.

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

22 years ago Tired of 'foo.h not found' messages in the build. Checked ms's docs,
William A. Rowe Jr [Wed, 17 Apr 2002 03:02:02 +0000 (03:02 +0000)]
  Tired of 'foo.h not found' messages in the build.  Checked ms's docs,
  seems xcopy's /y arg goes all the way back to Win95.  This shouldn't
  introduce any hassles.

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

22 years agoAdd warning message when selecting an experimental MPM.
Justin Erenkrantz [Tue, 16 Apr 2002 23:44:56 +0000 (23:44 +0000)]
Add warning message when selecting an experimental MPM.

While this message will scroll by without their reading it, we can
reasonably say that we warned them if they report errors.

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

22 years agoAdded support for the threadpool MPM
Brian Pane [Tue, 16 Apr 2002 23:39:09 +0000 (23:39 +0000)]
Added support for the threadpool MPM

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

22 years agoAnother experimental MPM derived from worker:
Brian Pane [Tue, 16 Apr 2002 23:37:06 +0000 (23:37 +0000)]
Another experimental MPM derived from worker:

The threadpool MPM implements Aaron Bannert's "time-space tradeoff"
design managing idle workers.  Rather than putting accepted connections
into a queue, the threadpool MPM keeps idle worker threads in a stack.
Its dedicated listener thread retrieves an idle worker from the stack
before accepting a connection.  If there are no idle workers, the
listener blocks until a worker becomes available before doing an accept.

In many ways, threadpool is also a variant of leader/follower.  They
both maintain a stack of idle threads.  The difference is that threadpool
has a dedicated listener thread, and leader/follower rotates the listening
responsibility among its worker threads.  In my initial testing, the
leader/follower MPM performs very well on multiprocessor Solaris 8 when
listening on a single port, but poorly when listening on multiple ports.
(I don't know why this is happening.  What I've found so far is that
when you add a poll on the listen socket(s) before the accept in the
leader/follower MPM, all the socket-related syscalls in the httpd get
slower.  My hypothesis is that the thread scheduler is making an optimal
decision about where (on what CPU) to run the newly awakened thread if
its first syscall is an accept, and a nonoptimal decision if its first
syscall is a poll.)  The threadpool MPM performs better with multiple
listener ports, and in my testing so far it looks competitive with
leader/follower when running with a single listener.

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

22 years agoMerge in latest GNU config.guess and config.sub files. Synchronize all
Justin Erenkrantz [Tue, 16 Apr 2002 08:49:03 +0000 (08:49 +0000)]
Merge in latest GNU config.guess and config.sub files.  Synchronize all
config.guess/config.sub files to be identical.  Previously, we had three
different versions of the guess files - now they are the same.

I attempted to merge in ASF changes that were marked and still needed.
Please verify that these work on your platform.  (Particular attention
is required for the IBM platforms.)

Part of PR 7818 stems from the fact that the bundled expat did not have an
included config.guess/config.sub.  Therefore, it would take the config.guess
from the system.  Icarus's autoconf/libtool is very old (2.13/1.3.5).  The
machine that was used to roll 2.0.32 had a recent autoconf/libtool which
explains the behavior that Sander saw in the PR.  Therefore, we now
explicitly provide a config.guess/.sub for the bundled expat so that
all of the versions are in sync.  This should minimize configuration
problems.

pcre was using a config.guess that was imported when Brian made the 3.9
import.  It did not have the Apache modifications, but seems to have
had the Darwin changes.  Go figure.  Sync it up as well.

PR: 7818
Obtained from: GNU FSF - ftp.gnu.org/gnu/config

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

22 years agoworker is not the default Unix MPM. [This statement has been in the docs
Cliff Woolley [Tue, 16 Apr 2002 06:13:48 +0000 (06:13 +0000)]
worker is not the default Unix MPM.  [This statement has been in the docs
ever since this was copy-and-pasted from the threaded MPM documentation,
and threaded *was* the default at one point.]

Reported by: kap@katchoo.org

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

22 years agoI doubt this was the intention.
Justin Erenkrantz [Tue, 16 Apr 2002 05:57:50 +0000 (05:57 +0000)]
I doubt this was the intention.

(Change 1.3->2.0)

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

22 years agoMove 100 - Continue support to the HTTP_IN filter so that filters
Justin Erenkrantz [Tue, 16 Apr 2002 05:50:37 +0000 (05:50 +0000)]
Move 100 - Continue support to the HTTP_IN filter so that filters
are guaranteed to support 100 - Continue logic without any
intervention.

This requires some reshuffling of the code in http_protocol.c so
that some static declarations are available early enough in the
code so that ap_http_filter can access them.

Note that we can not read the chunk until after (possibly) sending the
100.

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

22 years agoAdds support for reading trailers on input by exporting get_mime_headers
Justin Erenkrantz [Tue, 16 Apr 2002 05:43:09 +0000 (05:43 +0000)]
Adds support for reading trailers on input by exporting get_mime_headers
to ap_get_mime_headers and calling it in the appropriate place in
ap_http_filter.

showstoppers--;

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

22 years agoEliminated the extraneous code that caused each exiting worker to
Brian Pane [Tue, 16 Apr 2002 02:04:14 +0000 (02:04 +0000)]
Eliminated the extraneous code that caused each exiting worker to
wake up the next one in the list

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

22 years agoFix an uninitialized variable
Brian Pane [Mon, 15 Apr 2002 23:43:04 +0000 (23:43 +0000)]
Fix an uninitialized variable

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

22 years agoFixed some broken shutdown code
Brian Pane [Mon, 15 Apr 2002 23:11:51 +0000 (23:11 +0000)]
Fixed some broken shutdown code

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

22 years agoap_send_error_response: reset r->output filters to the protocol filters.
Greg Ames [Mon, 15 Apr 2002 20:42:45 +0000 (20:42 +0000)]
ap_send_error_response: reset r->output filters to the protocol filters.
The equivalent logic was deleted when request filters were renamed to
RESOURCE filters.  This fixes the seg faults that sometimes happen on
daedalus after a bogus 416 HTTP response is generated.

In this case, includes_filter had found an <!--#include virtual > tag, and
sent a brigade representing the data before it down the filter chain.  The
byterange filter generated the bogus 416.  ap_send_error_response essentially
starts over with a new response, but it didn't do anything to clean up the
filter chain.  So the same instance of the includes_filter got driven from the
top with the canned error text and and EOS bucket, which confused the heck
out of it.  It inserted a sentinel from the original brigade into the
error page brigade, causing problems further down the filter chain.

Submitted by: Greg Ames, Jeff Trawick

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

22 years agoFixing the link to the bug reporting page.
Bradley Nicholes [Mon, 15 Apr 2002 19:45:23 +0000 (19:45 +0000)]
Fixing the link to the bug reporting page.

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

22 years agoAdd some additional shutdown synchronization so that we don't get the OS
Bradley Nicholes [Mon, 15 Apr 2002 19:23:59 +0000 (19:23 +0000)]
Add some additional shutdown synchronization so that we don't get the OS
message to force the module to unload.

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

22 years agoBring the beos mpm into the new age with the new lock functions and some
David Reid [Mon, 15 Apr 2002 16:56:37 +0000 (16:56 +0000)]
Bring the beos mpm into the new age with the new lock functions and some
small corrections to get us building again.

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

22 years agoAdd note about closed PR. If a PR was filed, it's probably worthy to be
Justin Erenkrantz [Mon, 15 Apr 2002 03:03:43 +0000 (03:03 +0000)]
Add note about closed PR.  If a PR was filed, it's probably worthy to be
listed in CHANGES (IMHO).

I meant to include this with the vhost.c commit.
I am not doing good with commits today.  Grr.

PR: 7441

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

22 years agoAllow empty Host: header arguments.
Justin Erenkrantz [Mon, 15 Apr 2002 02:58:11 +0000 (02:58 +0000)]
Allow empty Host: header arguments.

Previously, request that sent:

GET / HTTP/1.1
Host:

would get a 400.  RFC 2616 specifically allows for a "blank" host field.

The read_request code properly handled this, but the fix_hostname in
vhost.c would cause the 400.  Now, simply return in fix_hostname when
we see a blank hostname rather than erroring out.

PR: 7441

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

22 years agoAck. That was bad. Revert this.
Justin Erenkrantz [Mon, 15 Apr 2002 00:44:30 +0000 (00:44 +0000)]
Ack.  That was bad.  Revert this.

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

22 years agoProperly substitute sbindir as httpd's location in apachectl.
Justin Erenkrantz [Mon, 15 Apr 2002 00:41:25 +0000 (00:41 +0000)]
Properly substitute sbindir as httpd's location in apachectl.

We install $(PROGRAMS) into $(sbindir) not $(bindir), so this is correct.

PR: 7840
Submitted by: Andreas Hasenack <andreas@netbank.com.br>
Reviewed by: Justin Erenkrantz

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

22 years agoRemove some leftover debug code that was closing an already-closed socket
Brian Pane [Mon, 15 Apr 2002 00:10:53 +0000 (00:10 +0000)]
Remove some leftover debug code that was closing an already-closed socket

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

22 years agoAddmodule doesn't exist in 2.0.
Joshua Slive [Sun, 14 Apr 2002 22:08:44 +0000 (22:08 +0000)]
Addmodule doesn't exist in 2.0.

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

22 years agoFix html comments in directive examples and defaults.
Joshua Slive [Sun, 14 Apr 2002 17:08:53 +0000 (17:08 +0000)]
Fix html comments in directive examples and defaults.

PR: 7832
Submitted by: sn@neopoly.com (Sven Neuhaus)

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

22 years agoLet people know what a "cgi-script" is and how to reference it.
Joshua Slive [Sun, 14 Apr 2002 16:57:46 +0000 (16:57 +0000)]
Let people know what a "cgi-script" is and how to reference it.

PR: 8037

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

22 years agoMessed up that last one. Here is the proper xhtml+xml type.
Joshua Slive [Sun, 14 Apr 2002 16:42:37 +0000 (16:42 +0000)]
Messed up that last one.  Here is the proper xhtml+xml type.

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

22 years agoAdd a couple requested (and properly registered) mime types.
Joshua Slive [Sun, 14 Apr 2002 16:40:38 +0000 (16:40 +0000)]
Add a couple requested (and properly registered) mime types.
See:
http://www.iana.org/assignments/media-types/application/
http://www.rfc-editor.org/rfc/rfc3236.txt
http://www.iana.org/assignments/media-types/image/vnd.djvu

PR: 7795,7969

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

22 years agofixed a typo
Brian Pane [Sun, 14 Apr 2002 09:21:43 +0000 (09:21 +0000)]
fixed a typo

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

22 years agoGet local address info in listener sockets initialized when constructed in
Brian Havard [Sun, 14 Apr 2002 08:38:15 +0000 (08:38 +0000)]
Get local address info in listener sockets initialized when constructed in
the child process from a descriptor passed from the parent. This fixed vhost
address matching.

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

22 years agoapr_bucket_alloc_create() now registers a cleanup that does a
Brian Havard [Sun, 14 Apr 2002 06:18:13 +0000 (06:18 +0000)]
apr_bucket_alloc_create() now registers a cleanup that does a
apr_bucket_alloc_destroy(). Don't double free by calling it explicitly.

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

22 years agoFixed a race condition
Brian Pane [Sun, 14 Apr 2002 00:31:43 +0000 (00:31 +0000)]
Fixed a race condition

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

22 years ago Respect the process_cgi argument
William A. Rowe Jr [Sat, 13 Apr 2002 22:34:16 +0000 (22:34 +0000)]
  Respect the process_cgi argument

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

22 years ago process_cgi is more descriptive than replace_cmd.
William A. Rowe Jr [Sat, 13 Apr 2002 20:42:35 +0000 (20:42 +0000)]
  process_cgi is more descriptive than replace_cmd.

  It also affects query_string args.

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

22 years ago The fix requires a bump
William A. Rowe Jr [Sat, 13 Apr 2002 19:58:04 +0000 (19:58 +0000)]
  The fix requires a bump

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

22 years ago If we have a registry command or a shebang line invocation, correct the
William A. Rowe Jr [Sat, 13 Apr 2002 19:55:00 +0000 (19:55 +0000)]
  If we have a registry command or a shebang line invocation, correct the
  invocation type to APR_PROGRAM_PATH so we will both search the path, and
  accept undecorated names, e.g. "perl" should be acceptable for "perl.exe".

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

22 years ago Wasted at least 20 minutes reparsing this code till I determined it's
William A. Rowe Jr [Sat, 13 Apr 2002 19:52:59 +0000 (19:52 +0000)]
  Wasted at least 20 minutes reparsing this code till I determined it's
  correct.  But make the sucker legible so noone else repeats the experience.

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

22 years ago In order for Win32 to accept the shebang line of #!perl so we 1) search
William A. Rowe Jr [Sat, 13 Apr 2002 19:50:46 +0000 (19:50 +0000)]
  In order for Win32 to accept the shebang line of #!perl so we 1) search
  the PATH and 2) resolve perl.exe for perl, we must add the progtype so
  we can override APR_PROGRAM with APR_PROGRAM_PATH.  This is the API change
  only for the cgi build command line option function.

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

22 years ago Correct const'ness of argv in all support apps, and use the new
William A. Rowe Jr [Sat, 13 Apr 2002 19:35:18 +0000 (19:35 +0000)]
  Correct const'ness of argv in all support apps, and use the new
  apr_app_initialize over apr_initialize for win32, and other platforms
  that may wish to tweak 'apr-ized' application support (e.g. Netware?)

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

22 years agoAdapt to the rename of apr_explode_localtime to apr_time_exp_lt in APR.
Sander Striker [Sat, 13 Apr 2002 12:02:38 +0000 (12:02 +0000)]
Adapt to the rename of apr_explode_localtime to apr_time_exp_lt in APR.

Submitted by: Thom May <thom@planetarytramp.net>

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

22 years agoFixed the shutdown logic
Brian Pane [Sat, 13 Apr 2002 07:00:32 +0000 (07:00 +0000)]
Fixed the shutdown logic

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

22 years agoToo many incomplete changes to the code base.
Roy T. Fielding [Sat, 13 Apr 2002 00:50:20 +0000 (00:50 +0000)]
Too many incomplete changes to the code base.

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

22 years agoNetWare binaries have been posted
Bradley Nicholes [Fri, 12 Apr 2002 23:12:26 +0000 (23:12 +0000)]
NetWare binaries have been posted

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

22 years agoReadjustment of where the bucket is being allocated now that they are being
Bradley Nicholes [Fri, 12 Apr 2002 22:11:44 +0000 (22:11 +0000)]
Readjustment of where the bucket is being allocated now that they are being
cleaned up.  Need to move the call to after apr_pool_clear() so that it doesn't
get cleanup too soon and never reallocated.

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

22 years agoBack out most of the previous commit, because part of it was useless and
Cliff Woolley [Fri, 12 Apr 2002 20:45:24 +0000 (20:45 +0000)]
Back out most of the previous commit, because part of it was useless and
part of it was vetoed.

Anybody know the sh-ism to compare timestamps on files?  That's what we
really need here.

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

22 years agoworker MPM: Fix a situation where a child exited without releasing
Jeff Trawick [Fri, 12 Apr 2002 19:58:52 +0000 (19:58 +0000)]
worker MPM: Fix a situation where a child exited without releasing
the accept mutex.  Depending on the OS and mutex mechanism this
could result in a hang.

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

22 years ago* make sure the -alpha name is not _inside_ the gzip (I have to try this and
Cliff Woolley [Fri, 12 Apr 2002 18:02:10 +0000 (18:02 +0000)]
* make sure the -alpha name is not _inside_ the gzip (I have to try this and
  to see if it works that way though)

* touch generated files to make sure we don't require the user to have the
  tools to rebuild them (eg, flex and yacc)

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

22 years agoTouch these files so that their datestamps are newer than the corresponding
Cliff Woolley [Fri, 12 Apr 2002 17:46:09 +0000 (17:46 +0000)]
Touch these files so that their datestamps are newer than the corresponding
.y and .l files.  These must be kept newer than those at all times to avoid
introducing a dependency on flex and yacc.

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

22 years agoupdate the instructions for how to get started with mod_example
Jeff Trawick [Fri, 12 Apr 2002 11:20:47 +0000 (11:20 +0000)]
update the instructions for how to get started with mod_example

Submitted by:  Stas Bekman

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

22 years ago Flip the order. If the user specifies ScriptInterpreterSource,
William A. Rowe Jr [Fri, 12 Apr 2002 06:35:15 +0000 (06:35 +0000)]
  Flip the order.  If the user specifies ScriptInterpreterSource,
  either Registry or RegistryStrict, test the registry in preference
  over a shebang line.  This is how 1.3 behaved, and allows scripts
  with invalid shebang lines (straight from another box, for example)
  to run without modification.

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

22 years agoAdded in the worker MPM's version of the POD code
Brian Pane [Fri, 12 Apr 2002 04:25:22 +0000 (04:25 +0000)]
Added in the worker MPM's version of the POD code

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

22 years agoswitch back to the worker's version of the pod code
Brian Pane [Fri, 12 Apr 2002 04:24:44 +0000 (04:24 +0000)]
switch back to the worker's version of the pod code

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

22 years agoAdded support for MPMs that live in subdirectories under server/mpm
Brian Pane [Fri, 12 Apr 2002 03:44:49 +0000 (03:44 +0000)]
Added support for MPMs that live in subdirectories under server/mpm
like server/mpm/experimental/*

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

22 years agoAdded support for MPMs that live in subdirectories under server/mpm
Brian Pane [Fri, 12 Apr 2002 03:37:01 +0000 (03:37 +0000)]
Added support for MPMs that live in subdirectories under server/mpm
like server/mpm/experimental/*

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

22 years agofixes to make it compile
Brian Pane [Fri, 12 Apr 2002 03:07:53 +0000 (03:07 +0000)]
fixes to make it compile

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

22 years agoinitial check-in of supporting code for leader/follower MPM
Brian Pane [Fri, 12 Apr 2002 03:06:48 +0000 (03:06 +0000)]
initial check-in of supporting code for leader/follower MPM

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

22 years agoJustin is off to a new adventure...
Justin Erenkrantz [Fri, 12 Apr 2002 03:02:39 +0000 (03:02 +0000)]
Justin is off to a new adventure...

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

22 years agoChange httpd.pid placement to rel_runtimedir instead of rel_logfiledir.
Justin Erenkrantz [Fri, 12 Apr 2002 01:08:40 +0000 (01:08 +0000)]
Change httpd.pid placement to rel_runtimedir instead of rel_logfiledir.
With the standard apache layout, this changes nothing (since runtimedir ==
logfiledir), but for other layouts, this makes a lot more sense.

PR: 7841
Submitted by:   Andreas Hasenack <andreas@netbank.com.br>
Reviewed by:    Justin Erenkrantz

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

22 years agoInitial check-in of leader-follower MPM code, derived from worker
Brian Pane [Thu, 11 Apr 2002 22:33:57 +0000 (22:33 +0000)]
Initial check-in of leader-follower MPM code, derived from worker

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

22 years agoA *major* upgrade for the dump_brigade and dump_bucket gdb macros.
Cliff Woolley [Thu, 11 Apr 2002 04:39:05 +0000 (04:39 +0000)]
A *major* upgrade for the dump_brigade and dump_bucket gdb macros.

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

22 years agoignore generated file httpd-std.conf
Jeff Trawick [Wed, 10 Apr 2002 18:49:00 +0000 (18:49 +0000)]
ignore generated file httpd-std.conf

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

22 years agoClosed up some holes where a thread could escape and exit without releasing
Bradley Nicholes [Wed, 10 Apr 2002 17:13:32 +0000 (17:13 +0000)]
Closed up some holes where a thread could escape and exit without releasing
the mutex.  This would leave all of the other threads deadlocked.

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

22 years agoThe accept loop was sleeping way too long when we ran out of completion contexts.
Bill Stoddard [Wed, 10 Apr 2002 17:02:00 +0000 (17:02 +0000)]
The accept loop was sleeping way too long when we ran out of completion contexts.
All that is really necessary is that the accept look yield the rest of its time slice
when this condition is hit.

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

22 years agoOoops. Don't whack our ptrans pool.
Bill Stoddard [Wed, 10 Apr 2002 15:17:42 +0000 (15:17 +0000)]
Ooops. Don't whack our ptrans pool.

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

22 years agoMove the socket info initialization into the winnt_accept() loop (this more closely
Bill Stoddard [Wed, 10 Apr 2002 14:52:38 +0000 (14:52 +0000)]
Move the socket info initialization into the winnt_accept() loop (this more closely
follows Apaches socket abstraction design principles).  Made similar change to
Win9x code to keep that OS working. Reuse the ptrans pool across transactions.

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

22 years agoGet rid of hungarian notation. No function change.
Bill Stoddard [Wed, 10 Apr 2002 13:54:55 +0000 (13:54 +0000)]
Get rid of hungarian notation. No function change.

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