]> granicus.if.org Git - apache/log
apache
23 years agoThe bucket_foo_create() functions do not need to use calloc() because
Cliff Woolley [Tue, 19 Jun 2001 18:48:21 +0000 (18:48 +0000)]
The bucket_foo_create() functions do not need to use calloc() because
all of the members of the apr_bucket struct are always explicitly
initialized anyway... malloc() should be used instead.

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

23 years agoNote mod_headers changes in a couple other places.
Joshua Slive [Tue, 19 Jun 2001 03:55:59 +0000 (03:55 +0000)]
Note mod_headers changes in a couple other places.

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

23 years agoBring these docs into line with "The Standard" and clean them up a
Joshua Slive [Tue, 19 Jun 2001 03:48:49 +0000 (03:48 +0000)]
Bring these docs into line with "The Standard" and clean them up a
little.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoRemove a duplicated check for -DONE_PROCESS
Cliff Woolley [Mon, 18 Jun 2001 19:09:55 +0000 (19:09 +0000)]
Remove a duplicated check for -DONE_PROCESS

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

23 years agoprefork has had SINGLE_LISTEN_UNSERIALIZED_ACCEPT working for a long time.
Jeff Trawick [Mon, 18 Jun 2001 12:52:21 +0000 (12:52 +0000)]
prefork has had SINGLE_LISTEN_UNSERIALIZED_ACCEPT working for a long time.
Hint at what should be done in threaded to get it working there.

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

23 years agoAs with Apache 1.3, use priority APLOG_INFO (instead of APLOG_ERR) for
Jeff Trawick [Mon, 18 Jun 2001 12:38:17 +0000 (12:38 +0000)]
As with Apache 1.3, use priority APLOG_INFO (instead of APLOG_ERR) for
log messages which report network errors writing to the client.

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

23 years agoThe patch fixes 2 things.
Jeff Trawick [Mon, 18 Jun 2001 11:50:42 +0000 (11:50 +0000)]
The patch fixes 2 things.
* apr_terminate now has the right declaration so it can be used
directly in atexit
* Win2K gets a divde by zero error when heartbeatres is zero (reproduce via
    support\Debug\ab.exe -k -c 6 -n 100 localhost/

Submitted by:   Ian Holsman <ianh@cnet.com>
Reviewed by:    Jeff Trawick

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

23 years ago Filenames aught to be normalized to the serverroot, and server_root_relative
William A. Rowe Jr [Mon, 18 Jun 2001 05:39:10 +0000 (05:39 +0000)]
  Filenames aught to be normalized to the serverroot, and server_root_relative
  already canonicalizes names.

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

23 years ago Allow index.html.en and Index.html.FR to both be considered in negotation
William A. Rowe Jr [Mon, 18 Jun 2001 05:36:33 +0000 (05:36 +0000)]
  Allow index.html.en and Index.html.FR to both be considered in negotation
  on case insensitive platforms, only.

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

23 years ago"fix" a // comment
Jeff Trawick [Sun, 17 Jun 2001 18:20:36 +0000 (18:20 +0000)]
"fix" a // comment

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

23 years agofix various // comments so they'll work portably
Jeff Trawick [Sun, 17 Jun 2001 18:15:31 +0000 (18:15 +0000)]
fix various // comments so they'll work portably

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

23 years agoDocumentation updates.
Ben Laurie [Sun, 17 Jun 2001 14:34:14 +0000 (14:34 +0000)]
Documentation updates.

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

23 years agoOS/2: Automate export of global variables from core.
Brian Havard [Sat, 16 Jun 2001 04:00:50 +0000 (04:00 +0000)]
OS/2: Automate export of global variables from core.

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

23 years agoFix brokenness when ThreadsPerChild is higher than the built-in
Jeff Trawick [Fri, 15 Jun 2001 18:33:09 +0000 (18:33 +0000)]
Fix brokenness when ThreadsPerChild is higher than the built-in
limit.  We left ap_threads_per_child at the higher value which
led to segfaults when doing certain scoreboard operations.

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

23 years agoBack out the change to allocate files out of the main request pool, and
Ryan Bloom [Thu, 14 Jun 2001 22:56:12 +0000 (22:56 +0000)]
Back out the change to allocate files out of the main request pool, and
implement pool-based setaside for FILE and MMAP buckets.

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

23 years agofix some more signalling issues:
Jeff Trawick [Thu, 14 Jun 2001 15:46:44 +0000 (15:46 +0000)]
fix some more signalling issues:

. in ONE_PROCESS mode, bail out immediately for SIGHUP and
  SIGINT

  Note that if you send HUP or INT and have cgid then cgid won't
  go away.  If you generate the interrupt signal from the httpd
  terminal then cgid will go away, [I guess] because SIGINT gets sent
  to the process group.  Perhaps just_die() needs to have logic to
  send to other processes in the group for ONE_PROCES mode

. the die_now flag should be static

. please_die_gracefully() is no longer needed

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

23 years agoFor SIGHUP in the server processes, we attempt to go away immediately,
Jeff Trawick [Thu, 14 Jun 2001 15:26:48 +0000 (15:26 +0000)]
For SIGHUP in the server processes, we attempt to go away immediately,
just as for SIGTERM.  If we deadlock because of some module or library
issue then SIGKILL will come soon enough.

Stop dorking with SIGTERM and SIGHUP in make_child().  That makes it
kind of hard for the caller to set up for ONE_PROCESS mode.

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

23 years agofix a bad call to ap_log_error (missing the errno/apr_status_t parameter)
Jeff Trawick [Thu, 14 Jun 2001 14:26:54 +0000 (14:26 +0000)]
fix a bad call to ap_log_error (missing the errno/apr_status_t parameter)

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

23 years agocatch SIGWINCH in the parent process and set appropriate flags
Jeff Trawick [Thu, 14 Jun 2001 14:07:07 +0000 (14:07 +0000)]
catch SIGWINCH in the parent process and set appropriate flags
so that we write to the pod to tell the servers to go away

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

23 years agofix a format string used for apr_status_t
Jeff Trawick [Thu, 14 Jun 2001 13:27:37 +0000 (13:27 +0000)]
fix a format string used for apr_status_t

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

23 years agoDefine a hook for fetching management/status items.
Greg Stein [Wed, 13 Jun 2001 20:11:45 +0000 (20:11 +0000)]
Define a hook for fetching management/status items.

This patch was submitted by Ian Holsman. Greg revised some names, applied
the Apache style, and namespace-prefixed the public symbols. Minor bugfix in
the use of the hook implementation macro.

Submitted by: Ian Holsman <IanH@cnet.com>
Reviewed by: Greg Stein

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

23 years ago* apr_brigade_partition() now returns an apr_status_t (finally!).
Cliff Woolley [Wed, 13 Jun 2001 16:48:37 +0000 (16:48 +0000)]
* apr_brigade_partition() now returns an apr_status_t (finally!).
* did some code cleanups/optimizations in that function.
* updated Apache's byterange filter to handle the new prototype. added
  error handling to the byterange filter should apr_brigade_partition()
  ever fail, which it never will unless somebody either removes the earlier
  call to apr_brigade_length() for some unknown reason or invents a new
  bucket type that is of a predetermined length but which cannot be split
  natively (or which has a split that might fail).  might as well be
  future-proof.

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

23 years agoAdd a pool to the ap_save_brigade prototype. This removes a todo from
Ryan Bloom [Wed, 13 Jun 2001 13:44:40 +0000 (13:44 +0000)]
Add a pool to the ap_save_brigade prototype.  This removes a todo from
the comments that is really necessary before the setaside stuff will
work properly.

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

23 years agoFix seg faults and/or missing output from mod_include. The
Greg Ames [Tue, 12 Jun 2001 19:03:08 +0000 (19:03 +0000)]
Fix seg faults and/or missing output from mod_include.  The
default_handler was using the subrequest pool for files and
MMAPs, even though the associated APR structures typically
live longer than the subrequest.

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

23 years agoExtend mod_setenvif to support specifying regular expressions
Bill Stoddard [Tue, 12 Jun 2001 17:06:04 +0000 (17:06 +0000)]
Extend mod_setenvif to support specifying regular expressions
on the SetEnvIf (and SetEnvIfNoCase) directive attribute field.
Example:  SetEnvIf ^TS*  [a-z].* HAVE_TS
will cause HAVE_TS to be set if any of the request headers begins
with "TS" and has a value that begins with any character in the
set [a-z]. [Bill Stoddard]

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

23 years agofix the bindprocessor() code selection; we need to test for the
Jeff Trawick [Tue, 12 Jun 2001 14:04:12 +0000 (14:04 +0000)]
fix the bindprocessor() code selection; we need to test for the
presence of the bindprocessor() function, not for sys/processor.h,
which exists on some systems that don't have bindprocessor()

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

23 years agoget threaded.c to compile on non-AIX systems which have sys/processor.h
Jeff Trawick [Tue, 12 Jun 2001 12:55:22 +0000 (12:55 +0000)]
get threaded.c to compile on non-AIX systems which have sys/processor.h

if we want to call bindprocessor(), we should check for bindprocessor(),
not some header file

(prefork and perchild to be fixed shortly)

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

23 years agoClean up formatting.
Victor J. Orlikowski [Mon, 11 Jun 2001 23:43:22 +0000 (23:43 +0000)]
Clean up formatting.

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

23 years agoSINGLE_LISTEN_UNSERIALIZED_ACCEPT applies to every kernel after
Victor J. Orlikowski [Mon, 11 Jun 2001 22:45:45 +0000 (22:45 +0000)]
SINGLE_LISTEN_UNSERIALIZED_ACCEPT applies to every kernel after
2.2, not just 2.2.

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

23 years agoMake the processor unbinding/re-binding stuff on AIX work again.
Victor J. Orlikowski [Mon, 11 Jun 2001 21:41:56 +0000 (21:41 +0000)]
Make the processor unbinding/re-binding stuff on AIX work again.

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

23 years agoback out a change from last week that reversed the meaning of pod_in and
Jeff Trawick [Mon, 11 Jun 2001 18:23:21 +0000 (18:23 +0000)]
back out a change from last week that reversed the meaning of pod_in and
pod_out; after that change, all read and write syscalls on the handles
failed because pod_in was only readable and pod_out was only writable

we could instead reverse the order of the parameters to apr_pipe_create
so that the descriptors returned by pipe() get put in the right place,
but it seems better to stick with APR terminology for what is the input
handle and what is the output handle

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

23 years agoDocument the fact that this is now an autogenerated file.
Victor J. Orlikowski [Mon, 11 Jun 2001 17:52:37 +0000 (17:52 +0000)]
Document the fact that this is now an autogenerated file.

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

23 years agoSilence gcc warning about rv being used when possibly uninitialized. That
Cliff Woolley [Mon, 11 Jun 2001 14:46:30 +0000 (14:46 +0000)]
Silence gcc warning about rv being used when possibly uninitialized.  That
can only happen if n<=1 (ie, a bad parameter value), so I figure APR_EINVAL
is the correct default value.

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

23 years agoFix look in htdigest. Reimplemented getline to work properly with
Bill Stoddard [Sun, 10 Jun 2001 21:01:57 +0000 (21:01 +0000)]
Fix look in htdigest.  Reimplemented getline to work properly with
APR. Shuld consider adding apr_file_getline() to APR.  Should also consider
changing apr_file_getc() to return characters rather than apr_status.

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

23 years ago Whoops, wanted the original unix language, not win32's, for both
William A. Rowe Jr [Sun, 10 Jun 2001 20:47:22 +0000 (20:47 +0000)]
  Whoops, wanted the original unix language, not win32's, for both

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

23 years ago Bring win32 and the rest of the world into sync, or closer into sync.
William A. Rowe Jr [Sun, 10 Jun 2001 20:44:17 +0000 (20:44 +0000)]
  Bring win32 and the rest of the world into sync, or closer into sync.

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

23 years ago Two duplicate working cvs copies down, several to go.
William A. Rowe Jr [Sun, 10 Jun 2001 20:11:31 +0000 (20:11 +0000)]
  Two duplicate working cvs copies down, several to go.

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

23 years ago Now that it works, adjust the conf appropriately.
William A. Rowe Jr [Sun, 10 Jun 2001 19:57:28 +0000 (19:57 +0000)]
  Now that it works, adjust the conf appropriately.

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

23 years ago Was certain I had committed this. Position the scoreboard members such
William A. Rowe Jr [Sun, 10 Jun 2001 00:37:59 +0000 (00:37 +0000)]
  Was certain I had committed this.  Position the scoreboard members such
  that the size and members can be derrived by the most stable elements,
  followed by derived elements.  [Harrie Hazewinkel]

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

23 years agoEnable SetEnvIf to handle taking a regex on the header name (SPECIAL_NOT case).
Bill Stoddard [Sat, 9 Jun 2001 15:57:06 +0000 (15:57 +0000)]
Enable SetEnvIf to handle taking a regex on the header name (SPECIAL_NOT case).
For example:

SetEnvIf ^TS* ^[a-z].*  HAVE_TS

will cause HAVE_TS to be set if a header beginning with TS appears in the request
and the value of that header starts with [a-z]

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

23 years agoUpdating docs to change around the order of extern and
Victor J. Orlikowski [Sat, 9 Jun 2001 11:33:07 +0000 (11:33 +0000)]
Updating docs to change around the order of extern and
AP[RU]_DECLARE_DATA. If this is incorrect, please yell.
However, the vast majority of the code follows the convention
documented in this patch.
If this is in error, I will gladly back it out.

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

23 years agoWooHoo!
Victor J. Orlikowski [Sat, 9 Jun 2001 08:47:23 +0000 (08:47 +0000)]
WooHoo!
(Only limitations - mod_proxy and mod_dav, soon to be corrected).

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

23 years agoMake this little hack slightly more palatable.
Victor J. Orlikowski [Sat, 9 Jun 2001 08:28:08 +0000 (08:28 +0000)]
Make this little hack slightly more palatable.

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

23 years agoStill needs to be built, though.
Victor J. Orlikowski [Sat, 9 Jun 2001 08:20:11 +0000 (08:20 +0000)]
Still needs to be built, though.

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

23 years agoNo, libtool shouldn't build this. :p
Victor J. Orlikowski [Sat, 9 Jun 2001 08:16:14 +0000 (08:16 +0000)]
No, libtool shouldn't build this. :p

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

23 years agoxlC isn't as accepting as gcc; make things tolerable for it.
Victor J. Orlikowski [Sat, 9 Jun 2001 08:06:38 +0000 (08:06 +0000)]
xlC isn't as accepting as gcc; make things tolerable for it.

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

23 years agoSlight Clean-up.
Victor J. Orlikowski [Sat, 9 Jun 2001 08:05:53 +0000 (08:05 +0000)]
Slight Clean-up.

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

23 years agoAdd the missing AP[RU]_DECLARE_DATA symbols to httpd.exp.
Victor J. Orlikowski [Sat, 9 Jun 2001 06:33:50 +0000 (06:33 +0000)]
Add the missing AP[RU]_DECLARE_DATA symbols to httpd.exp.
httpd.exp should now be generated automatically.
Any missing symbols are now the fault of awk scripts.
Or rather, their authors. :)

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

23 years agoOrdering changes, for detection's sake.
Victor J. Orlikowski [Sat, 9 Jun 2001 04:21:27 +0000 (04:21 +0000)]
Ordering changes, for detection's sake.

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

23 years agopod_in shouldn't be non-blocking after all
Jeff Trawick [Sat, 9 Jun 2001 02:57:46 +0000 (02:57 +0000)]
pod_in shouldn't be non-blocking after all
Submitted by: Ryan Bloom

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

23 years agoClean up this relative path too.
Victor J. Orlikowski [Fri, 8 Jun 2001 20:36:09 +0000 (20:36 +0000)]
Clean up this relative path too.

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

23 years agothe input handle to the pod (used by child processes) needs to be non-blocking
Jeff Trawick [Fri, 8 Jun 2001 16:53:10 +0000 (16:53 +0000)]
the input handle to the pod (used by child processes) needs to be non-blocking

before this, no requests could be processed by prefork since after connect
from the client prefork would block reading the pod

the write handle to the pod probably doesn't have to be non-blocking, but
getting EAGAIN for the pipe-full condition, rather than blocking, is nice
for now since it would tend to indicate that something is FUBAR; on the other
hand, this probably needs to change in order to support more than 4K workers

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

23 years agoWe need to increment i during this for loop. Without this change, we will
Ryan Bloom [Fri, 8 Jun 2001 16:39:48 +0000 (16:39 +0000)]
We need to increment i during this for loop.  Without this change, we will
end up in an infinite loop.
Submitted by: Ryan Morgan

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

23 years agoGreg was right, I was wrong.
Victor J. Orlikowski [Fri, 8 Jun 2001 15:02:25 +0000 (15:02 +0000)]
Greg was right, I was wrong.
We don;t need these here anymore, since the copy is done directly from the
server directory.
I need more sleep. :)

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

23 years agoDISTCLEAN, not EXTRACLEAN.
Victor J. Orlikowski [Fri, 8 Jun 2001 14:49:20 +0000 (14:49 +0000)]
DISTCLEAN, not EXTRACLEAN.

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

23 years agoMake sure httpd.exp gets cleaned up only with a distclean, and not every time.
Victor J. Orlikowski [Fri, 8 Jun 2001 14:43:02 +0000 (14:43 +0000)]
Make sure httpd.exp gets cleaned up only with a distclean, and not every time.

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

23 years agoConvert the filter and brigade writing functions to return status values,
Greg Stein [Fri, 8 Jun 2001 11:00:14 +0000 (11:00 +0000)]
Convert the filter and brigade writing functions to return status values,
not byte counts.

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

23 years agomoved CHANGES here
Chuck Murcko [Fri, 8 Jun 2001 09:59:25 +0000 (09:59 +0000)]
moved CHANGES here
PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoIt helps to write to the input side of the pipe, and read from the output
Ryan Bloom [Fri, 8 Jun 2001 04:55:44 +0000 (04:55 +0000)]
It helps to write to the input side of the pipe, and read from the output
side.

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

23 years ago(A few) Small changes to pass full paths instead of relatives.
Victor J. Orlikowski [Fri, 8 Jun 2001 02:13:18 +0000 (02:13 +0000)]
(A few) Small changes to pass full paths instead of relatives.
One relative left; not sure whether to change it too or not.

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

23 years agoSmall change to pass full paths instead of relatives.
David Reid [Fri, 8 Jun 2001 02:00:47 +0000 (02:00 +0000)]
Small change to pass full paths instead of relatives.

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

23 years agoClean out httpd.exp when cleaning up.
Victor J. Orlikowski [Thu, 7 Jun 2001 23:32:14 +0000 (23:32 +0000)]
Clean out httpd.exp when cleaning up.

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

23 years agoIgnore the now-irrelevant httpd.exp.
Victor J. Orlikowski [Thu, 7 Jun 2001 23:29:54 +0000 (23:29 +0000)]
Ignore the now-irrelevant httpd.exp.

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

23 years agoOn the trail to getting make_export.awk pull in the right symbols.
Victor J. Orlikowski [Thu, 7 Jun 2001 20:54:38 +0000 (20:54 +0000)]
On the trail to getting make_export.awk pull in the right symbols.
Hence, we are tossing this old pain in the neck :)

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

23 years agotrace failures of a couple of crucial socket calls in ap_mpm_pod_signal()
Jeff Trawick [Thu, 7 Jun 2001 17:22:12 +0000 (17:22 +0000)]
trace failures of a couple of crucial socket calls in ap_mpm_pod_signal()

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

23 years agocheck the pod in the child at a different spot so that we check it
Jeff Trawick [Thu, 7 Jun 2001 16:49:03 +0000 (16:49 +0000)]
check the pod in the child at a different spot so that we check it
when we get a new connection; we were (essentially) never checking it
before

we check it when weird errors occur too but that shouldn't matter

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

23 years agoimprove ap_mpm_pod_signal() by not let it loop until it fills the pipe
Jeff Trawick [Thu, 7 Jun 2001 15:18:28 +0000 (15:18 +0000)]
improve ap_mpm_pod_signal() by not let it loop until it fills the pipe

it still doesn't handle the pipe being full for other reasons (bazillions
of child processes?), but I'm not sure that is a real occurrence

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

23 years agofix a thread-safety bug by using apr_strtok() instead of strtok()
Jeff Trawick [Thu, 7 Jun 2001 14:45:03 +0000 (14:45 +0000)]
fix a thread-safety bug by using apr_strtok() instead of strtok()

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

23 years agoA little cloudy, but clearing...
Victor J. Orlikowski [Thu, 7 Jun 2001 10:46:12 +0000 (10:46 +0000)]
A little cloudy, but clearing...

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

23 years agocorrect the back-out of this change. it used to be ap_log_perror()
Greg Stein [Thu, 7 Jun 2001 10:38:13 +0000 (10:38 +0000)]
correct the back-out of this change. it used to be ap_log_perror()

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

23 years agoOoopsie. Some unintended things slipped in.
Victor J. Orlikowski [Thu, 7 Jun 2001 10:31:09 +0000 (10:31 +0000)]
Ooopsie. Some unintended things slipped in.
Backing them out.
Sorry.

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

23 years ago*) Add apr_bucket_setaside_noop to use for buckets that do not require a
Greg Stein [Thu, 7 Jun 2001 10:13:25 +0000 (10:13 +0000)]
*) Add apr_bucket_setaside_noop to use for buckets that do not require a
   setaside function. It simply returns APR_SUCCESS.
   - adjust the EOS, FLUSH, IMMORTAL, and HEAP buckets to use _noop.

*) Make the setaside() function take a pool to define the (new) lifetime for
   the bucket's data.
   - Adjust the apr_bucket_setaside() macro.
   - Adjust the apr_bucket_setaside_notimpl() and transient_setaside()
     functions.
   - Pass the additional parameter in ap_save_brigade()

*) Update docs for setaside()

*) Minor nit with macros in apr_buckets.h: add parens for binding safety.

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

23 years agoGenerate httpd.exp on the fly.
Victor J. Orlikowski [Thu, 7 Jun 2001 10:03:29 +0000 (10:03 +0000)]
Generate httpd.exp on the fly.
This should allow DSOs to work on AIX, without the headache of maintaining
the httpd.exp file.
This is adapted from OS/2's generation of ApacheCoreOS2.def.
There exist a few bugs still:
    1) mod_dav and mod_proxy may not yet work, due to certain namespace issues.
    2) Some symbols may need to be added, a la core_header.def
Once these have been fixed, the old httpd.exp file will be deleted.

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

23 years agoPort typo fix from 1.3.
Yoshiki Hayashi [Thu, 7 Jun 2001 05:14:13 +0000 (05:14 +0000)]
Port typo fix from 1.3.

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

23 years agoback out bogus "fix" for subrequest buckets using wrong pool
Jeff Trawick [Thu, 7 Jun 2001 03:02:03 +0000 (03:02 +0000)]
back out bogus "fix" for subrequest buckets using wrong pool

Submitted by: Greg Stein

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

23 years agothe subrequest pool issue wasn't recent breakage so mention it in
Jeff Trawick [Thu, 7 Jun 2001 01:29:20 +0000 (01:29 +0000)]
the subrequest pool issue wasn't recent breakage so mention it in
CHANGES

subsequent fixers feel free to overlay may name with yours :)

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

23 years agoimplement Ryan's suggested fix for buckets associated with a subrequest
Jeff Trawick [Thu, 7 Jun 2001 01:24:44 +0000 (01:24 +0000)]
implement Ryan's suggested fix for buckets associated with a subrequest
having private data in the wrong (i.e., subrequest) pool, leading to
a segfault later in processing the main request

in the patch posted on new-httpd, the temporary brigade was allocated from
the connection pool; the committed code allocates the brigade from the
main-request pool, as suggested by Ian Holsman

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

23 years agodon't add BYTERANGE, CONTENT_LENGTH, or HTTP_HEADER for
Jeff Trawick [Thu, 7 Jun 2001 01:14:24 +0000 (01:14 +0000)]
don't add BYTERANGE, CONTENT_LENGTH, or HTTP_HEADER for
subrequests; they only make sense for main requests and
internal redirects

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

23 years agoFirst pass at the pipe_of_death logic for the prefork MPM. This does
Ryan Bloom [Thu, 7 Jun 2001 00:09:16 +0000 (00:09 +0000)]
First pass at the pipe_of_death logic for the prefork MPM.  This does
pass some initial testing, but it needs to be banged on more.  It looks
like if the server gets a lot of requests to restart all at once, there
are potential problems, but other than that this does seem to solve our
current restart issues.

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

23 years agoAdd a new request phase, for allowing management modules to forward
Ryan Bloom [Wed, 6 Jun 2001 22:24:54 +0000 (22:24 +0000)]
Add a new request phase, for allowing management modules to forward
error logs to their management agents.

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

23 years agoUse apr-util's date functions now
Chuck Murcko [Wed, 6 Jun 2001 21:51:58 +0000 (21:51 +0000)]
Use apr-util's date functions now

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

23 years agoMake mod_echo use filters for all communication with clients.
Ryan Bloom [Wed, 6 Jun 2001 21:28:20 +0000 (21:28 +0000)]
Make mod_echo use filters for all communication with clients.
Submitted by: Ryan Morgan <rmorgan@covalent.net>

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

23 years agoget rid of util_date.c/util_date.h and associated test program
Jeff Trawick [Wed, 6 Jun 2001 19:37:15 +0000 (19:37 +0000)]
get rid of util_date.c/util_date.h and associated test program
test_date.c

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

23 years agouse apr-util's apr_date_parse_http() instead of the to-be-removed
Jeff Trawick [Wed, 6 Jun 2001 19:30:54 +0000 (19:30 +0000)]
use apr-util's apr_date_parse_http() instead of the to-be-removed
ap_parseHTTPdate()

(proxy needs to make similar changes)

build changes forthcoming...

Submitted by: Justin Erenkrantz

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

23 years agonicer to compare r->finfo.filetype with APR_NOFILE instead of 0
Jeff Trawick [Wed, 6 Jun 2001 12:51:21 +0000 (12:51 +0000)]
nicer to compare r->finfo.filetype with APR_NOFILE instead of 0

the sub request output filter shouldn't lose the return code from
the next filter

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

23 years agofilters should return APR status codes
Jeff Trawick [Wed, 6 Jun 2001 12:48:45 +0000 (12:48 +0000)]
filters should return APR status codes

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

23 years agoinitialize local condition_var var to keep garbage out of struct
Jeff Trawick [Wed, 6 Jun 2001 10:43:46 +0000 (10:43 +0000)]
initialize local condition_var var to keep garbage out of struct
header_entry->condition_var and avoid a segfault later

(untested, but it looks good to me :) )

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

23 years agoap_getword_conf wants const char **, not char **
Jeff Trawick [Wed, 6 Jun 2001 00:54:06 +0000 (00:54 +0000)]
ap_getword_conf wants const char **, not char **

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

23 years agoExtend mod_headers to support conditional driven Header
Bill Stoddard [Tue, 5 Jun 2001 21:44:48 +0000 (21:44 +0000)]
Extend mod_headers to support conditional driven Header
add, append and set. Use SetEnvIf to set an envar and conditionally
add/append/set headers based on this envar thusly:

     SetEnvIf TSMyHeader value HAVE_TSMyHeader
     Header add MyHeader "%t %D" env=HAVE_TSMyHeader

If the request contains header "TSMyHeader: value" then header
MyHeader: "t=xxxxxxxxxx D=yyyy" will be sent on the response.

Update mod_headers.html.

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

23 years agoit's hot out there
Jeff Trawick [Tue, 5 Jun 2001 18:24:28 +0000 (18:24 +0000)]
it's hot out there

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

23 years agoFix the reset_filters function. If we set r->output_filters to NULL,
Ryan Bloom [Mon, 4 Jun 2001 21:43:08 +0000 (21:43 +0000)]
Fix the reset_filters function.  If we set r->output_filters to NULL,
then we also have to reset the connection's filters.
Submitted by: John Sterling <sterling@covalent.net>

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

23 years agoFurther explain the custom bucket types idea for mod_file_cache
Cliff Woolley [Mon, 4 Jun 2001 15:29:53 +0000 (15:29 +0000)]
Further explain the custom bucket types idea for mod_file_cache

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

23 years agomod_file_cache brokeness
Bill Stoddard [Mon, 4 Jun 2001 14:20:20 +0000 (14:20 +0000)]
mod_file_cache brokeness

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

23 years agovoid * isn't compatible with a function pointer; deal with retrieving a
Jeff Trawick [Mon, 4 Jun 2001 10:43:50 +0000 (10:43 +0000)]
void * isn't compatible with a function pointer; deal with retrieving a
function pointer from apr_hash_get()

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

23 years agoFix some broken logic in the prefork MPM. Basically, in the past, if we
Ryan Bloom [Mon, 4 Jun 2001 04:00:03 +0000 (04:00 +0000)]
Fix some broken logic in the prefork MPM.  Basically, in the past, if we
accepted a request, we didn't want to die if given a graceful restart
signal.  The logic I am removing stops us from dying for a graceless
restart/stop signal, which is just wrong.  If we are sent a graceless
restart/stop, then we need to stop immediately.

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

23 years agoDoxygenation.
Ben Laurie [Sun, 3 Jun 2001 11:59:18 +0000 (11:59 +0000)]
Doxygenation.

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

23 years agoFunction declaration must be a prototype.
Ben Laurie [Sun, 3 Jun 2001 11:21:51 +0000 (11:21 +0000)]
Function declaration must be a prototype.

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

23 years agomention another problem experienced on daedalus using 2_0_16
Jeff Trawick [Sat, 2 Jun 2001 00:22:19 +0000 (00:22 +0000)]
mention another problem experienced on daedalus using 2_0_16

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

23 years agoOptimise reset_filter() in http_protocol.c
Graham Leggett [Fri, 1 Jun 2001 22:14:01 +0000 (22:14 +0000)]
Optimise reset_filter() in http_protocol.c
PR:
Obtained from:
Submitted by: Greg Stein
Reviewed by:

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

23 years agoExtend Header add|set|append support to accept format strings for the
Bill Stoddard [Fri, 1 Jun 2001 19:55:48 +0000 (19:55 +0000)]
Extend Header add|set|append support to accept format strings for the
header values.  Configure thusly:

Header add MyHeader "%t %D yadda"

%t is the time the request was received relative to CUT since the epoch measured in microseconds.
%D is the time delta from the time the request was received to the time the headers are sent
on the wire. To facilitate parsing the header response, %D results in the string D=xxx and
%t results in the string t=xxx. Thus the config directive above will result in this header
being included in the response:

MyHeader: t=991424704447256 D=3775428 yadda

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