]> granicus.if.org Git - apache/log
apache
24 years agoeos_bucket->read() no longer returns AP_END_OF_BRIGADE, so check for
Jeff Trawick [Thu, 14 Sep 2000 15:31:58 +0000 (15:31 +0000)]
eos_bucket->read() no longer returns AP_END_OF_BRIGADE, so check for
eos in a different manner.

Catch bad retcodes from bucket->read().

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

24 years agoput ctx back in ap_add_filter()
Doug MacEachern [Thu, 14 Sep 2000 05:08:42 +0000 (05:08 +0000)]
put ctx back in ap_add_filter()

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

24 years agoImprove the way the chunking filter handles zero-length buckets,
Tony Finch [Thu, 14 Sep 2000 02:16:07 +0000 (02:16 +0000)]
Improve the way the chunking filter handles zero-length buckets,
and fix the comment explaining how to reduce the incidence of tiny chunks.
Submitted by: Jeff Trawick
Reviewed by: Tony Finch

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

24 years agoAdd a pointer to the filter_rec_t from the filter_t. This allows modules
Ryan Bloom [Thu, 14 Sep 2000 00:34:15 +0000 (00:34 +0000)]
Add a pointer to the filter_rec_t from the filter_t.  This allows modules
to get to the filter name from the filter itself.  This is useful for
modules like mod_perl, which have one filter function that does different
things based on the name used when the filter was inserted.

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

24 years agoAdd the AddFilter directive. This directive takes a list of filter names
Ryan Bloom [Wed, 13 Sep 2000 23:13:20 +0000 (23:13 +0000)]
Add the AddFilter directive.  This directive takes a list of filter names
that have been previously registered with the server.  Currently the
directive is only valid inside the config file, but once the Options
directive is tweaked a bit, I would feel more comfortable exposing this
directive to htaccess files.

As a part of making adding this filter, I removed the ctx pointer from the
ap_add_filter prototype.  The problem is that the core is the thing that
is actually inserting the filter into the filter stack, but the core doesn't
know how to allocate memory for each filter.  The solution is to have the
filters themselves be responsible for allocating the ctx memory whenever
it is required.

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

24 years agoFix another seg fault with allow_methods and sub requests
Ryan Bloom [Wed, 13 Sep 2000 22:24:46 +0000 (22:24 +0000)]
Fix another seg fault with allow_methods and sub requests

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

24 years agoFix a seg fault with sub requests. We must allocate space for the
Ryan Bloom [Wed, 13 Sep 2000 21:45:21 +0000 (21:45 +0000)]
Fix a seg fault with sub requests.  We must allocate space for the
sub-requests allowed_methods array before we try to copy into it.

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

24 years agoFix a stupid typo. I wanted to register the filter, but I didn't want to
Ryan Bloom [Wed, 13 Sep 2000 19:10:33 +0000 (19:10 +0000)]
Fix a stupid typo.  I wanted to register the filter, but I didn't want to
add it.  I accidentally deleted the wrong line before I committed last
night.

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

24 years agoEncourage people to use the simpler NameVirtualHost * syntax for new
Tony Finch [Wed, 13 Sep 2000 18:19:17 +0000 (18:19 +0000)]
Encourage people to use the simpler NameVirtualHost * syntax for new
setups and use a syntactically valid hostname in the example.

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

24 years agoFirst pass at mod_include as a filter. This is at an incredibly alpha
Ryan Bloom [Wed, 13 Sep 2000 02:07:40 +0000 (02:07 +0000)]
First pass at mod_include as a filter.  This is at an incredibly alpha
stage, but it should compile for everybody now.  I have experienced a few
seg faults that I haven't been able to track down yet, but it should
compile on all platforms, which is better than before this patch.

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

24 years ago Start introducing the extension-method elements so we're not
Ken Coar [Wed, 13 Sep 2000 01:58:15 +0000 (01:58 +0000)]
Start introducing the extension-method elements so we're not
bound to hard-coded names and a bitmask.  We still use the
bitmask for known methods, but we also have an array for
extension method named.  Wherever we used the M_* constants
we need to use a routine that knows about the new structure instead.

This is far from complete, but AFAIK this interim work doesn't
break anything -- especially the compile.  The rest of the
work will be added in segments; this is just a checkpoint.

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

24 years ago Do a bunch of style-guide fixups (like wrapping Boolean tests
Ken Coar [Wed, 13 Sep 2000 01:36:01 +0000 (01:36 +0000)]
Do a bunch of style-guide fixups (like wrapping Boolean tests
correctly and enblocking singel-statement if()s).

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

24 years agoThis commit adds support for purely name-based virtual hosting that
Tony Finch [Tue, 12 Sep 2000 17:46:40 +0000 (17:46 +0000)]
This commit adds support for purely name-based virtual hosting that
does not require any IP addresses in httpd.conf and which disregards
the local IP address of any connections. This will be particularly
appreciated by people running little servers on machines with
dynamically configured IP addresses, and by people wishing to use
identical httpd.conf files on all the machines in a load-balanced
cluster.

The syntax is:
        NameVirtualHost *
        <VirtualHost *>
                ServerName my.friend.has.a.silly.vanitydomain.org
                DocumentRoot /usr/local/apache/docs1
        </VirtualHost>
        <VirtualHost *>
                ServerName but.easier.to.spell.than.my.vanitydomain.org
                DocumentRoot /usr/local/apache/docs2
        </VirtualHost>

The implementation is a straightforward extension of what is there
already although the patch is made somewhat larger by the need to
avoid duplicate code for normal and wildcarded NameVirtualHosts.

PR: 5595, 4455

[ported from 1.3.13]

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

24 years agoNew doc describing configuration process.
Joshua Slive [Tue, 12 Sep 2000 16:34:48 +0000 (16:34 +0000)]
New doc describing configuration process.

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

24 years agoallow->Allow, deny->Deny, order->Order and require->Require.
Rich Bowen [Tue, 12 Sep 2000 15:16:59 +0000 (15:16 +0000)]
allow->Allow, deny->Deny, order->Order and require->Require.
All directives are now consistently capitalized.
PR:
Obtained from:
Submitted by: Rich Bowen <rbowen@rcbowen.com>
Reviewed by:

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

24 years agoExplictly close the AF_UNIX socket to the cgid child after nph cgis too.
Jeff Trawick [Tue, 12 Sep 2000 14:48:49 +0000 (14:48 +0000)]
Explictly close the AF_UNIX socket to the cgid child after nph cgis too.
(Yeah, it got closed during pool cleanup, but it is more understandable if
it is closed the same way for nph and !nph cgis.)

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

24 years agoEnsure that only one EOS bucket is sent down the filter stack. This is
Ryan Bloom [Tue, 12 Sep 2000 03:40:15 +0000 (03:40 +0000)]
Ensure that only one EOS bucket is sent down the filter stack.  This is
done by adding a flag to the request_rec.  When ap_pass_bucket sees an
EOS bucket, the flag is set.  If the flag is still unset when
ap_finalize_request is called, then ap_finalize_request sends an EOS.  This
fixes the problem with chunking and CGI.

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

24 years agoThe apr_file_t representation of the Unix socket from which we read
Jeff Trawick [Mon, 11 Sep 2000 21:37:27 +0000 (21:37 +0000)]
The apr_file_t representation of the Unix socket from which we read
the CGI output should live in the request pool, not in pcgi.  pcgi (in
the httpd processes, at least) isn't cleaned up until we restart httpd.

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

24 years agoGet mod_isapi.c to compile with the level of Win32 headers which
Jeff Trawick [Mon, 11 Sep 2000 19:02:40 +0000 (19:02 +0000)]
Get mod_isapi.c to compile with the level of Win32 headers which
ship with VC++ 5.0.

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

24 years agoTutorials. These are, of course, all for 1.3, but it is better than
Joshua Slive [Mon, 11 Sep 2000 18:46:53 +0000 (18:46 +0000)]
Tutorials.  These are, of course, all for 1.3, but it is better than
nothing.

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

24 years agoModify mod_cgid to use bucket brigades. This means that mod_cgid behaves
Ryan Bloom [Mon, 11 Sep 2000 00:30:02 +0000 (00:30 +0000)]
Modify mod_cgid to use bucket brigades.  This means that mod_cgid behaves
like mod_cgi, creating a single element bucket brigade that is passed to
the next filter.  This is instead of making mod_cgid read from the socket,
and call ap_r* repeatedly.

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

24 years agoDon't do non-idempotent things in macro arguments.
Tony Finch [Sun, 10 Sep 2000 05:02:59 +0000 (05:02 +0000)]
Don't do non-idempotent things in macro arguments.

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

24 years agoUse XXX for comments describing inadequacies in the code, as in the rest
Tony Finch [Sun, 10 Sep 2000 05:00:03 +0000 (05:00 +0000)]
Use XXX for comments describing inadequacies in the code, as in the rest
of Apache.

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

24 years agoThe "get resource" functionality is no longer a hook. Instead, providers
Greg Stein [Sat, 9 Sep 2000 23:23:42 +0000 (23:23 +0000)]
The "get resource" functionality is no longer a hook. Instead, providers
register themselves by name with mod_dav. The user configures a particular
provider for a location/directory. mod_dav looks up that provider and uses
it explicitly. (the prior behavior simply asked "anybody" to satisfy the
get_resource, but it did not mesh well with user-specified providers)

*) add providers.c to deal with provider registration
*) rejigger mod_dav.c to toss the hook and use the provider
*) clean out dav/fs/ of the old scheme and have it register itself

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

24 years agothe DAV directive now takes the name of a repository provider
Greg Stein [Sat, 9 Sep 2000 22:55:09 +0000 (22:55 +0000)]
the DAV directive now takes the name of a repository provider

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

24 years agopass_chunk() was tossing a brigade composed of just the EOS bucket. on
Greg Stein [Sat, 9 Sep 2000 22:35:03 +0000 (22:35 +0000)]
pass_chunk() was tossing a brigade composed of just the EOS bucket. on
    entry, it saw there were zero bytes and simply returned. the client
    would never receive "end of response" and timeout (or the server would
    timeout the client).

*) added comments about what is going on
*) place chunk start/end markers around just the content, if that content
   is non-zero in length
*) insert all the right "end of response" stuff before the EOS bucket

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

24 years agoUpdate mod_charset_lite to use the new ring-based macros
Jeff Trawick [Sat, 9 Sep 2000 22:26:30 +0000 (22:26 +0000)]
Update mod_charset_lite to use the new ring-based macros
for manipulating the brigade.

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

24 years agoPR: 6139
Joshua Slive [Sat, 9 Sep 2000 18:40:49 +0000 (18:40 +0000)]
PR: 6139
Submitted by:  ken@nsds.com
Reviewed by: Joshua Slive
 "TestCond" should read "TestString" in documentation for mod_rewrite

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

24 years agoPR: 6419
Joshua Slive [Sat, 9 Sep 2000 18:31:42 +0000 (18:31 +0000)]
PR: 6419
Submitted by: chris@chrullrich.de
Reviewed by: Joshua Slive
Missing Override.

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

24 years agoPR: 6470,6450,6218,6216,6478
Joshua Slive [Sat, 9 Sep 2000 18:19:55 +0000 (18:19 +0000)]
PR: 6470,6450,6218,6216,6478
Submitted by: pepper@reppep.com
Reviewed by: Joshua Slive
Grammar fixes from the bug database.

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

24 years agoBeOS doesn't have an os-inline.c file so don't try to install it!
David Reid [Sat, 9 Sep 2000 12:46:49 +0000 (12:46 +0000)]
BeOS doesn't have an os-inline.c file so don't try to install it!

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

24 years agopublish the mod_dav.h header for DAV backend providers to use
Greg Stein [Sat, 9 Sep 2000 10:24:59 +0000 (10:24 +0000)]
publish the mod_dav.h header for DAV backend providers to use

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

24 years agoupdate the WebDAV versioning support:
Greg Stein [Sat, 9 Sep 2000 09:25:22 +0000 (09:25 +0000)]
update the WebDAV versioning support:
- recognize and dispatch the latest set of DeltaV methods
- refine the CHECKOUT provider hook
- add avail_reports provider hook
- fix the "target" resolution mechanism

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

24 years agoUse wrapper macros to avoid the verbosity of the AP_RING macros when
Tony Finch [Sat, 9 Sep 2000 06:48:10 +0000 (06:48 +0000)]
Use wrapper macros to avoid the verbosity of the AP_RING macros when
doing things with bucket brigades.

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

24 years agoFix inserting elements at the head and tail of a ring when the ring is
Tony Finch [Sat, 9 Sep 2000 01:11:15 +0000 (01:11 +0000)]
Fix inserting elements at the head and tail of a ring when the ring is
empty. Avoiding referring to the element type in the macros resulted
in some double dereferences that did the wrong thing.
Reported by: Jeff Trawick

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

24 years agoPR:
Joshua Slive [Fri, 8 Sep 2000 23:34:20 +0000 (23:34 +0000)]
PR:
Obtained from:
Submitted by:
Reviewed by:
Small fix to modules index.

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

24 years agoPR:
Joshua Slive [Fri, 8 Sep 2000 23:28:24 +0000 (23:28 +0000)]
PR:
Obtained from:
Submitted by:
Reviewed by:

Add an index of modules "by type".  The modules directory in 2.0
could use a good cleaning to get rid of stuff that doesn't need
to be carried over, but that can wait.

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

24 years agoFix a compile break in mod_mime_magic.c. In early 2.0 versions, we would
Ryan Bloom [Fri, 8 Sep 2000 20:34:33 +0000 (20:34 +0000)]
Fix a compile break in mod_mime_magic.c.  In early 2.0 versions, we would
get a pipe back from create_child, and stuff that into a buff to read from
it.  This made sense in 1.3, because we got a buff back from the
create_process call.  In 2.0, we are getting a pipe, so this doesn't
make sense.  This patch just uses the pipe that is returned to us to read
the information we want.
Submitted by:   John K. Sterling <sterling@covalent.net>
Reviewed by:    Ryan Bloom

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

24 years agoChange prefork to use the same listen api as the rest of the unix mpms
Greg Ames [Fri, 8 Sep 2000 14:59:46 +0000 (14:59 +0000)]
Change prefork to use the same listen api as the rest of the unix mpms
(ap_setup_listeners).  This eliminates the need to force a recompile of
listen.c when you switch to/from using prefork.

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

24 years agoReduce the manualarity of managing bucket brigade lists by using the
Tony Finch [Fri, 8 Sep 2000 10:16:14 +0000 (10:16 +0000)]
Reduce the manualarity of managing bucket brigade lists by using the
new AP_RING macros. Most of this commit is fairly pedestrian as you
would expect, but I had to redo the chunking filter because of the
amount of pointer juggling it did. I have done some minimal testing
of this patch and it seems to work.

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

24 years agoFix merging of AddDefaultCharset directive.
Jeff Trawick [Thu, 7 Sep 2000 23:51:36 +0000 (23:51 +0000)]
Fix merging of AddDefaultCharset directive.
PR: 5872 (reported against 1.3)
Submitted by: Jun Kuriyama <kuriyama@imgsrc.co.jp>
Reviewed by: Jeff Trawick

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

24 years agoFix the ScanDoc output on IE. I don't have IE, so I can't test this, but
Ryan Bloom [Wed, 6 Sep 2000 14:02:29 +0000 (14:02 +0000)]
Fix the ScanDoc output on IE.  I don't have IE, so I can't test this, but
it looks correct, and this problem has been submitted to me multiple times
PR: 6501
Submitted by:  Shuichi Kitaguchi <ki@hh.iij4u.or.jp>
Reviewed by: Ryan Bloom

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

24 years agoNote release date of 2.0a6.
Jeff Trawick [Sat, 2 Sep 2000 11:32:42 +0000 (11:32 +0000)]
Note release date of 2.0a6.
Submitted by: Jun Kuriyama <kuriyama@imgsrc.co.jp>

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

24 years agoFix default Timeout & KeepaliveTimeout. Still need to limit directive
Allan K. Edwards [Fri, 1 Sep 2000 14:47:20 +0000 (14:47 +0000)]
Fix default Timeout & KeepaliveTimeout. Still need to limit directive
values to prevent integer microsecond overflow.

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

24 years agoUpdate export file for AIX with recent symbol changes.
Jeff Trawick [Fri, 1 Sep 2000 00:31:19 +0000 (00:31 +0000)]
Update export file for AIX with recent symbol changes.
Submitted by: Victor J. Orlikowski

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

24 years agofix a few bugs and improve error handling:
Jeff Trawick [Wed, 30 Aug 2000 21:15:33 +0000 (21:15 +0000)]
fix a few bugs and improve error handling:

introduce extended error status as a start of more helpful error logging;

instead of aborting the process when we get a bucket-straddling char too
wide to handle, trace the problem and return an error;

when we get to the end of the brigade and we're still waiting for the rest
of a character, return an error instead of ignoring the problem;

if we get 0 bytes when reading from a pipe, don't fret (segfault); skip
over this empty bucket and read the next one;

don't set done if send_downstream() returns APR_SUCCESS; set it for the
opposite condition; that bug kept us from processing our entire input
brigade for brigades that caused lots of output;

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

24 years agoreversing the latest commit; it was vetoed a while back.
Greg Stein [Wed, 30 Aug 2000 01:09:09 +0000 (01:09 +0000)]
reversing the latest commit; it was vetoed a while back.

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

24 years agoModify the way filters are added to the server. Instead of using a FIFO,
Ryan Bloom [Tue, 29 Aug 2000 22:16:45 +0000 (22:16 +0000)]
Modify the way filters are added to the server.  Instead of using a FIFO,
we use a modified LIFO.  It is modified, because if we add a filter while
in the middle of another filter, the added filter gets put in after the
current filter.  This requires that the server is smart about which filters
are added when.  This should be handled by the HTTP protocol, but we will
want to keep and eye on things for a little while.

This change is necessary, because currently when we add a filter it goes
after the last filter of the same type.  This is broken whenever we want
to add a filter that has a dependancy.  Think about the core and chunking
filters.  They are of the same type, and core is always added first.  When
we go to insert chunking, it gets added, but it is never called.

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

24 years agoFilters (and thus ap_pass_brigade()) now return an apr_status_t as their
Jeff Trawick [Tue, 29 Aug 2000 20:57:29 +0000 (20:57 +0000)]
Filters (and thus ap_pass_brigade()) now return an apr_status_t as their
return value.

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

24 years agoStop using strlen() for the size of an array. It isn't valid C
Jeff Trawick [Tue, 29 Aug 2000 20:21:30 +0000 (20:21 +0000)]
Stop using strlen() for the size of an array.  It isn't valid C
(though gcc was happy with it).

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

24 years agoIf the src/apachecore.dll and src/apachecore.x files exist, copy them to the
Greg Ames [Tue, 29 Aug 2000 15:59:59 +0000 (15:59 +0000)]
If the src/apachecore.dll and src/apachecore.x files exist, copy them to the
install bin directory during "make install".  Used for OS/390 dso builds.

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

24 years agoUpdate chunk_filter to handle buckets with unknown length (e.g., pipes).
Jeff Trawick [Mon, 28 Aug 2000 20:36:42 +0000 (20:36 +0000)]
Update chunk_filter to handle buckets with unknown length (e.g., pipes).
As soon as we hit such a bucket, we'll read from it then pass everything
we have so far on to the next filter.  At that point we'll start over.

Also, increase the size of the chunk header buffer to handle larger
lengths.

Note: There is still an extra final chunk header (0) when mod_cgi is used
because EOS is coming down twice.

This is likely to have some bugs here and there.  Even worse, it is butt
ugly and in need of simplification.

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

24 years ago Adding the Taiwan translation bits.
Ken Coar [Mon, 28 Aug 2000 14:39:05 +0000 (14:39 +0000)]
Adding the Taiwan translation bits.

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

24 years agoCall ap_pass_brigade() *before* soaking up stderr. The normal CGI
Jeff Trawick [Sat, 26 Aug 2000 19:45:15 +0000 (19:45 +0000)]
Call ap_pass_brigade() *before* soaking up stderr.  The normal CGI
is going to write a bunch of stuff to stdout and nothing to stderr.
Reading stderr before processing the stdout pipe can cause deadlock if
the CGI fills the kernel buffer for stdout because the CGI will stall
writing to stdout while the httpd process will stall reading from the
CGI's stderr.

The NPH CGI behavior was unchanged.  If this is still a problem for NPH
CGIs, it was a problem before filtering too.

Also, get rid of a couple of unused variables in cgi_handler.

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

24 years agoRemove a needless cast.
David Reid [Sat, 26 Aug 2000 10:02:03 +0000 (10:02 +0000)]
Remove a needless cast.

Submitted by: Victor J Orlikowski <v.j.orlikowski@gte.net>
Reviewed by: dreid@apache.org

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

24 years agoMake CGI's use bucket brigades. This will only work with mod_cgi for the
Ryan Bloom [Fri, 25 Aug 2000 22:18:15 +0000 (22:18 +0000)]
Make CGI's use bucket brigades.  This will only work with mod_cgi for the
time being.  The changes should apply equally to mod_cgid, but I haven't
had a chance to really try it yet.  This is definately sub-optimal as far
as performance is concerned.  The concepts are there, and the flags are
available for performance tuning, but I didn't want to really get too
enmeshed in it today.

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

24 years ago Keep this note for 2.0 developers, as well. Needs additional comments
William A. Rowe Jr [Fri, 25 Aug 2000 14:39:42 +0000 (14:39 +0000)]
  Keep this note for 2.0 developers, as well.  Needs additional comments
  to follow, after the Bills haggle out the final config registry details.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoIt's dark.
Manoj Kasichainula [Fri, 25 Aug 2000 10:15:09 +0000 (10:15 +0000)]
It's dark.

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

24 years agoAdd ap_buckets_pipe.c and remove iol_socket and iol_file
Bill Stoddard [Thu, 24 Aug 2000 16:51:03 +0000 (16:51 +0000)]
Add ap_buckets_pipe.c and remove iol_socket and iol_file

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

24 years agoWe need to test specifically for setrlimit/getrlimit instead of
Jim Jagielski [Wed, 23 Aug 2000 23:28:54 +0000 (23:28 +0000)]
We need to test specifically for setrlimit/getrlimit instead of
just the structure or the RLIMIT_* defines. Also, we should make
the API function unixd_set_rlimit() ``available'' even if it
doesn't do anything.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoAlways delete generated_lists. This should cure problems with makes
Sascha Schumann [Wed, 23 Aug 2000 20:19:17 +0000 (20:19 +0000)]
Always delete generated_lists. This should cure problems with makes
which don't handle the .PHONY target correctly.

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

24 years agoTry to organize the MPM pre-selection to the hints.m4 file.
Jim Jagielski [Wed, 23 Aug 2000 20:16:29 +0000 (20:16 +0000)]
Try to organize the MPM pre-selection to the hints.m4 file.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoFix a small typo and an incorrect type.
Ryan Bloom [Wed, 23 Aug 2000 18:06:00 +0000 (18:06 +0000)]
Fix a small typo and an incorrect type.
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net>
Reviewed by: Ryan Bloom

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

24 years agoUse the AP_INIT_() command_rec initialization macros and fix
Jeff Trawick [Wed, 23 Aug 2000 01:46:25 +0000 (01:46 +0000)]
Use the AP_INIT_() command_rec initialization macros and fix
up the signature of command handlers to avoid maintainer mode
warnings.

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

24 years agoRemove IOLs from Apache. They are no longer necessary, now that we have
Ryan Bloom [Wed, 23 Aug 2000 00:01:58 +0000 (00:01 +0000)]
Remove IOLs from Apache.  They are no longer necessary, now that we have
filtering beginning to work.  There is a hack that has been repeated
through this patch, we morph a pipe into a socket, and put the socket
into the BUFF.  Everytime we do that, we are working with a pipe from
a CGI, and we should be creating a pipe bucket and passing that bucket
back.  Because we don't actually have pipe buckets yet, we are using this
hack.  When we get pipe buckets, this will be fixed.

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

24 years agoFix charset translation breakage on EBCDIC machines... the core turned
Jeff Trawick [Tue, 22 Aug 2000 18:01:47 +0000 (18:01 +0000)]
Fix charset translation breakage on EBCDIC machines...  the core turned
on buff's translation by default, but mod_charset_lite (when configured
to do so) turned on its own filter-based translation, resulting in
gibberish.

To be determined... whether or not mod_charset_lite should enable
translation of text objects by default (a la 1.3)...  probably... for
now you have to tell mod_charset_lite to translate.

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

24 years agoFixed...
Bill Stoddard [Tue, 22 Aug 2000 17:09:42 +0000 (17:09 +0000)]
Fixed...

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

24 years agoAPRize disabling nagle (setting TCP_NODELAY).
Brian Havard [Tue, 22 Aug 2000 15:09:28 +0000 (15:09 +0000)]
APRize disabling nagle (setting TCP_NODELAY).
Note that several areas have not been tested as they apply to MPMs or APR
code that I can't test.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoFinish fixing the pcre build. PCRE's configure script should be called,
Ryan Bloom [Tue, 22 Aug 2000 04:25:36 +0000 (04:25 +0000)]
Finish fixing the pcre build.  PCRE's configure script should be called,
and we can't clean config.h and then touch the file, we actually need
some of the data that config.h contains.

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

24 years agoBackport the Makefile to the previous version. PCRE wasn't building
Ryan Bloom [Tue, 22 Aug 2000 03:39:04 +0000 (03:39 +0000)]
Backport the Makefile to the previous version.  PCRE wasn't building
without this change.

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

24 years agoWin32: function pointers use C calling convention unless explicitly set to use
Bill Stoddard [Tue, 22 Aug 2000 03:20:44 +0000 (03:20 +0000)]
Win32: function pointers use C calling convention unless explicitly set to use
stdcall. The 'split' function pointer in ap_buckets.h points to both static functions
(which use C calling convention) and exported functions (which normally use stdcall).
Let's settle on using the C calling convention.

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

24 years agoAdd a couple of new bucket functions to the Win32 project file.
Bill Stoddard [Tue, 22 Aug 2000 02:12:22 +0000 (02:12 +0000)]
Add a couple of new bucket functions to the Win32 project file.

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

24 years agoWin32: Reset the acceptex context on a GetQueuedCompletionStatus() failure. We were
Bill Stoddard [Tue, 22 Aug 2000 01:24:07 +0000 (01:24 +0000)]
Win32: Reset the acceptex context on a GetQueuedCompletionStatus() failure. We were
losing contexts before this fix, and if we lost enough, the server would stop responding.

GetQueuedCompletionStatus can fail with ERROR_NETNAME_DELETED when a client closes
its end of a connection and we try to reuse the accept socket.  Really bizzare... I would
have thought the AcceptEx using the recycled socket would have failed instead...

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

24 years ago Expand a little on the description, while testing enhancements to
Ken Coar [Mon, 21 Aug 2000 21:09:17 +0000 (21:09 +0000)]
Expand a little on the description, while testing enhancements to
the log_accum.pl CVSROOT script.

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

24 years ago Another minor cosmetic fix, committed from the httpd-docs-2.0/apidoc
Ken Coar [Mon, 21 Aug 2000 19:26:36 +0000 (19:26 +0000)]
Another minor cosmetic fix, committed from the httpd-docs-2.0/apidoc
tree.

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

24 years ago Cosmetic fix, committed from the apache-2.0 tree (this will also
Ken Coar [Mon, 21 Aug 2000 19:25:13 +0000 (19:25 +0000)]
Cosmetic fix, committed from the apache-2.0 tree (this will also
test the CVS module association).

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

24 years agoFix some bad calls to ap_log_rerror() in mod_rewrite. In some places,
Jeff Trawick [Mon, 21 Aug 2000 19:09:01 +0000 (19:09 +0000)]
Fix some bad calls to ap_log_rerror() in mod_rewrite.  In some places,
errno was passed as the APR error code.  In other places, 0 was passed.

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

24 years ago Fix a typo.
Ken Coar [Mon, 21 Aug 2000 15:39:41 +0000 (15:39 +0000)]
Fix a typo.

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

24 years agoUpdate mod_charset_lite for recent changes to ap_bucket_create functions.
Jeff Trawick [Mon, 21 Aug 2000 11:02:32 +0000 (11:02 +0000)]
Update mod_charset_lite for recent changes to ap_bucket_create functions.

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

24 years agoWin32: Don't count the AcceptEx context when reset_acceptex_context() fails.
Bill Stoddard [Mon, 21 Aug 2000 02:09:33 +0000 (02:09 +0000)]
Win32: Don't count the AcceptEx context when reset_acceptex_context() fails.

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

24 years agoUse context data, initialized prior to insertion of the filter, to indicate
Jeff Trawick [Sun, 20 Aug 2000 03:44:20 +0000 (03:44 +0000)]
Use context data, initialized prior to insertion of the filter, to indicate
which translation handle to use.  This will allow the same filter to work
for input and output.

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

24 years agoUpgrade PCRE to version 3.2
Ryan Bloom [Sun, 20 Aug 2000 03:21:56 +0000 (03:21 +0000)]
Upgrade PCRE to version 3.2
PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoWe have a list of all of the suspended PRs in the STATUS file, so
Ryan Bloom [Sat, 19 Aug 2000 16:50:55 +0000 (16:50 +0000)]
We have a list of all of the suspended PRs in the STATUS file, so
mentioning that we need to review them seems like overkill.

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

24 years agoAdd a note about sub-requests and filters.
Ryan Bloom [Sat, 19 Aug 2000 16:47:13 +0000 (16:47 +0000)]
Add a note about sub-requests and filters.

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

24 years agoAdd generic support for reference-counting the resources used by
Tony Finch [Sat, 19 Aug 2000 06:04:57 +0000 (06:04 +0000)]
Add generic support for reference-counting the resources used by
buckets, and alter the HEAP and MMAP buckets to use it. Change
the way buckets are initialised to support changing the type of
buckets in place, and use it when setting aside TRANSIENT buckets.
Change the implementation of TRANSIENT buckets so that it can be
mostly shared with IMMORTAL buckets, which are now implemented.

Reviewed by: rbb

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

24 years agothe ExtendedStatus directive is also dead
Tony Finch [Sat, 19 Aug 2000 05:52:33 +0000 (05:52 +0000)]
the ExtendedStatus directive is also dead

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

24 years agoRemove the obsolete ResourceConfig and AccessConfig directives
Tony Finch [Sat, 19 Aug 2000 05:50:29 +0000 (05:50 +0000)]
Remove the obsolete ResourceConfig and AccessConfig directives

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

24 years agofix up the </LimitExcept> missing from the previous commit
Tony Finch [Sat, 19 Aug 2000 05:47:41 +0000 (05:47 +0000)]
fix up the </LimitExcept> missing from the previous commit

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

24 years agoUse LimitExcept in the commented-out example for the UserDir stuff
Tony Finch [Sat, 19 Aug 2000 05:34:15 +0000 (05:34 +0000)]
Use LimitExcept in the commented-out example for the UserDir stuff
rather than a list of supposedly all of the other HTTP methods,

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

24 years agoRemove extra tabs from Makefiles
Ryan Bloom [Sat, 19 Aug 2000 00:38:51 +0000 (00:38 +0000)]
Remove extra tabs from Makefiles
Submitted by: David Hill <ddhill@zk3.dec.com>

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

24 years agoRemove whitespace from blank lines in rules.mk. This fixes Irix 6.5
Ryan Bloom [Sat, 19 Aug 2000 00:34:38 +0000 (00:34 +0000)]
Remove whitespace from blank lines in rules.mk.  This fixes Irix 6.5
PR: 6357
Submitted by: Mike Abbott <mja@sgi.com>
Reviewed by: Ryan Bloom

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

24 years agoFix type of bytes_sent parm passed to ap_bucket_mmap_create().
Jeff Trawick [Fri, 18 Aug 2000 18:48:11 +0000 (18:48 +0000)]
Fix type of bytes_sent parm passed to ap_bucket_mmap_create().

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

24 years agoConvert mod_charset_lite to use a filter for character set translation
Jeff Trawick [Fri, 18 Aug 2000 18:16:31 +0000 (18:16 +0000)]
Convert mod_charset_lite to use a filter for character set translation
(used only on output at the moment).

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

24 years agoAdvance all the numbers in the CHANGES and httpd.h file to reflect that
Ryan Bloom [Fri, 18 Aug 2000 17:45:39 +0000 (17:45 +0000)]
Advance all the numbers in the CHANGES and httpd.h file to reflect that
we are now working on a7.

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

24 years agoUpdate the Announcement for the 6th alpha
Ryan Bloom [Fri, 18 Aug 2000 17:16:26 +0000 (17:16 +0000)]
Update the Announcement for the 6th alpha

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

24 years agoUpdate httpd.h for the release of a6.
Ryan Bloom [Fri, 18 Aug 2000 17:15:17 +0000 (17:15 +0000)]
Update httpd.h for the release of a6.

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

24 years agoTweak apache/apr builds to support dsos on OS/390.
Jeff Trawick [Fri, 18 Aug 2000 15:33:08 +0000 (15:33 +0000)]
Tweak apache/apr builds to support dsos on OS/390.

The OS/390 compile options are hard-coded because we need the
special DLL,EXPORTALL on *all* object files that are part of the
core so that dsos can reference symbols in the core.  (Of course,
we use the option on more object files than that, but it doesn't
seem to hurt anything.)

We hard-code the enablement of DSOs on OS/390 because the
library functions on OS/390 to manage explicit loading are not
portable, so there seems to be no use in probing for them.

Submitted by: Greg Ames

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

24 years agoproxy_cache.c was still in the ApacheModuleProxy project, although that
Ryan Bloom [Fri, 18 Aug 2000 04:50:22 +0000 (04:50 +0000)]
proxy_cache.c was still in the ApacheModuleProxy project, although that
modules is deprecated.  Remove it from the project.
Submitted by: Bill Rowe <wrowe@apache.org>

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

24 years agoFix chunking. Two bugs fixed.
Ryan Bloom [Fri, 18 Aug 2000 04:46:07 +0000 (04:46 +0000)]
Fix chunking.  Two bugs fixed.

1)  don't put the trailing 0\r\n\r\n in lenstr; that buffer is
    already in use (pointed to by another transient bucket); using
    lenstr again overlays that other chunk header
2)  insert the bucket with the trailing "0\r\n\r\n" *before* the eos bucket
Submitted by: Jeff Trawick <trawickj@bellsouth.net>

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

24 years agoAdd entry about win32 socket timeouts...
Bill Stoddard [Thu, 17 Aug 2000 17:49:04 +0000 (17:49 +0000)]
Add entry about win32 socket timeouts...

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