]> granicus.if.org Git - apache/log
apache
24 years agoFix a compile break. ap_set_content_length is a void function now, so we
Ryan Bloom [Wed, 8 Nov 2000 02:46:00 +0000 (02:46 +0000)]
Fix a compile break.  ap_set_content_length is a void function now, so we
can't check the return code.

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

24 years agoMake the keep-alive documentation more accurate.
Joshua Slive [Wed, 8 Nov 2000 01:15:49 +0000 (01:15 +0000)]
Make the keep-alive documentation more accurate.

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

24 years agoUse apr_off_t for the content length, rather than long. Propagate through
Greg Stein [Tue, 7 Nov 2000 22:41:09 +0000 (22:41 +0000)]
Use apr_off_t for the content length, rather than long. Propagate through
the byterange handling and ap_set_content_length().

[ ap_each_byterange() remains as an apr_size_t* so we don't mess up callers ]

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

24 years agoAvoid warning about unused function open_file() on systems
Jeff Trawick [Tue, 7 Nov 2000 22:12:36 +0000 (22:12 +0000)]
Avoid warning about unused function open_file() on systems
with no sendfile().

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

24 years agoConvert a lot of apr_ssize_t to apr_size_t. We don't ever accept or return
Ryan Bloom [Tue, 7 Nov 2000 20:21:55 +0000 (20:21 +0000)]
Convert a lot of apr_ssize_t to apr_size_t.  We don't ever accept or return
signed values in these integers, and we return the error codes directly,
so we should always report the number of bytes read/written correctly.  If
we have an error, that is 0 bytes.  If that is true, then using signed
values doesn't make any sense.

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

24 years agoRemove the original ap_send_fd code. The filters have been working for a
Ryan Bloom [Tue, 7 Nov 2000 18:09:47 +0000 (18:09 +0000)]
Remove the original ap_send_fd code.  The filters have been working for a
while, and this is cluttering up the code.  If it is really needed, it
can be found in CVS

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

24 years agoFix typo
Martin Kraemer [Tue, 7 Nov 2000 16:54:27 +0000 (16:54 +0000)]
Fix typo

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

24 years agoGet rid of unused variable zero in ap_send_http_options().
Jeff Trawick [Tue, 7 Nov 2000 12:18:45 +0000 (12:18 +0000)]
Get rid of unused variable zero in ap_send_http_options().

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

24 years agoThe LoadModule line should specify a .so file, not a .la file
Greg Stein [Tue, 7 Nov 2000 04:10:59 +0000 (04:10 +0000)]
The LoadModule line should specify a .so file, not a .la file

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

24 years agoAlways compute the content-length regardless of whether it is sent to the
Ryan Bloom [Tue, 7 Nov 2000 00:58:49 +0000 (00:58 +0000)]
Always compute the content-length regardless of whether it is sent to the
client or not.  The reason for this, is that it allows us to log the
bytes sent to the client correctly.  This also simplifies the
content-length filter a bit, by making it a single pass through the
brigade.

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

24 years agoRemvoe AP_END_OF_BRIGADE. This definition didn't really mean anything,
Ryan Bloom [Tue, 7 Nov 2000 00:33:48 +0000 (00:33 +0000)]
Remvoe AP_END_OF_BRIGADE.  This definition didn't really mean anything,
because it didn't signify the end of the brigade, and it didn't signify
the end of a response.  It ended up meaning flush the data, which can be
detemined with bucket type checks.  This also makes the FLUSH and EOS
buckets have a 0 length, which makes a lot of code cleaner, because now we
can just add lengths and be sure they are all >=0.

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

24 years agoGrammar/Style fixes.
Joshua Slive [Mon, 6 Nov 2000 22:47:06 +0000 (22:47 +0000)]
Grammar/Style fixes.

Submitted by: Chris Pepper <pepper@mail.reppep.com>

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

24 years agoap_send_fd should not be sending an EOS bucket, so we should remove any
Ryan Bloom [Mon, 6 Nov 2000 20:43:19 +0000 (20:43 +0000)]
ap_send_fd should not be sending an EOS bucket, so we should remove any
trace of that possibility from the code.  First of all, there is nothing
that says you can only send one file bucket in a response, and second,
even if a handler sends a file, nothing says that it can't add text before
or after it too.

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

24 years agoMake the desired evaluation explicit to keep gcc -Wall happy.
Jeff Trawick [Mon, 6 Nov 2000 17:32:13 +0000 (17:32 +0000)]
Make the desired evaluation explicit to keep gcc -Wall happy.

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

24 years agoFixed a couple leftover &amp;s.
Joshua Slive [Sun, 5 Nov 2000 20:27:58 +0000 (20:27 +0000)]
Fixed a couple leftover &amp;s.
Submitted by: Chris Pepper <pepper@mail.reppep.com>

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

24 years agoCleanup of perf-tuning.html. No content changes.
Joshua Slive [Sun, 5 Nov 2000 19:52:03 +0000 (19:52 +0000)]
Cleanup of perf-tuning.html.  No content changes.
Submitted by: Chris Pepper <pepper@mail.reppep.com>, Joshua Slive

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

24 years agoAllow the core_output_filter to save data in the filter past the end of
Ryan Bloom [Sun, 5 Nov 2000 04:06:17 +0000 (04:06 +0000)]
Allow the core_output_filter to save data in the filter past the end of
the first request if this is a keepalive connection.  This allows us to
save the end of the first request until we have enough data from the
second request to make it worthwhile to send the responses.  In order
to do this, we need to allocate mmap's from the connection pool instead
of the request pool.  If we don't use the connection pool, then the mmap
is freed before the data is sent, because the mmap is freed at the end of
the first request.

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

24 years agooops. only do the slash management if dir != NULL
Greg Stein [Sun, 5 Nov 2000 01:40:57 +0000 (01:40 +0000)]
oops. only do the slash management if dir != NULL

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

24 years agoMinor content and spelling fixes to two recently added docs.
Joshua Slive [Sat, 4 Nov 2000 02:37:21 +0000 (02:37 +0000)]
Minor content and spelling fixes to two recently added docs.

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

24 years agoClean up blocking and non-blocking reads from buckets. The only bucket
Ryan Bloom [Sat, 4 Nov 2000 01:30:37 +0000 (01:30 +0000)]
Clean up blocking and non-blocking reads from buckets.  The only bucket
that works correctly right now is sockets, but pipes are coming next.
This also makes the http_header_filter do AP_MODE_PEEK correctly.

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

24 years agoSub requests should never get into the http headers filter, so we remove
Ryan Bloom [Fri, 3 Nov 2000 22:35:52 +0000 (22:35 +0000)]
Sub requests should never get into the http headers filter, so we remove
the check for it, and through in an ASSERT.

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

24 years agoRemove REQUEST_CHUNKED_PASS and change ap_discard_request_body()
Sascha Schumann [Fri, 3 Nov 2000 17:34:59 +0000 (17:34 +0000)]
Remove REQUEST_CHUNKED_PASS and change ap_discard_request_body()
to use REQUEST_CHUNKED_DECHUNK.

Because of this change, the need for handle_request_body() is gone,
so we remove that as well.

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

24 years agoChange the content-length filter to give up (i.e., not provide content-length)
Jeff Trawick [Fri, 3 Nov 2000 16:38:28 +0000 (16:38 +0000)]
Change the content-length filter to give up (i.e., not provide content-length)
if it gets a flush bucket.  A generator of streaming content needs to send down
a flush bucket (e.g., by calling ap_rflush()) if it wants to send a partial
response to the client immediately.

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

24 years agoAxe a couple of newly-unused variables.
Jeff Trawick [Fri, 3 Nov 2000 15:56:42 +0000 (15:56 +0000)]
Axe a couple of newly-unused variables.

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

24 years agoRemove some more references to sockaddr structures...
David Reid [Fri, 3 Nov 2000 15:09:16 +0000 (15:09 +0000)]
Remove some more references to sockaddr structures...

Removing the rest will need someone who knows this code to look through
in more detail.

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

24 years agoMore removal of raw sockaddr references. This shouldn't cause any problems,
David Reid [Fri, 3 Nov 2000 15:08:06 +0000 (15:08 +0000)]
More removal of raw sockaddr references. This shouldn't cause any problems,
but folks may want to test it :)

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

24 years agoAnother removal of using raw sockaddr where we should be using APR.
David Reid [Fri, 3 Nov 2000 14:48:40 +0000 (14:48 +0000)]
Another removal of using raw sockaddr where we should be using APR.

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

24 years ago John's patches to provide depreciated messages for the -i and -u
William A. Rowe Jr [Fri, 3 Nov 2000 04:39:41 +0000 (04:39 +0000)]
  John's patches to provide depreciated messages for the -i and -u
  options (now -k install|uninstall), and best yet, restart the console
  mode server on Ctrl+Break (Ctrl+C still stops it.)
  At least this is the second half - sorry I missed a bit.

Submitted by: John Sterling <sterling@covalent.net>
Reviewed by: William Rowe

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

24 years ago John's patches to provide depreciated messages for the -i and -u
William A. Rowe Jr [Fri, 3 Nov 2000 04:34:42 +0000 (04:34 +0000)]
  John's patches to provide depreciated messages for the -i and -u
  options (now -k install|uninstall), and best yet, restart the console
  mode server on Ctrl+Break (Ctrl+C still stops it.)

Submitted by: John Sterling <sterling@covalent.net>
Reviewed by: William Rowe

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

24 years agoMerge the 1.3 patch to add support for logging query string in
Bill Stoddard [Fri, 3 Nov 2000 03:08:31 +0000 (03:08 +0000)]
Merge the 1.3 patch to add support for logging query string in
such a way that "%m %U%q %H" is the same as "%r".

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

24 years agoMerge forward mod_log_config enhancement.
Bill Stoddard [Fri, 3 Nov 2000 03:00:57 +0000 (03:00 +0000)]
Merge forward mod_log_config enhancement.

Added three log methods: CLF compliant '-' byte count, method and protocol.

CVg:   then name the system in this line, otherwise delete it.

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

24 years agoWe don't really want to fool around with socket structures if we don't have to,
David Reid [Fri, 3 Nov 2000 02:17:56 +0000 (02:17 +0000)]
We don't really want to fool around with socket structures if we don't have to,
and in this case we can get the ip address directly from the socket.  This
should mean that if we add more protocol support we don't have to worry about
this.  No doubt this is the first of many such changes...

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

24 years agoWe have functions that allow us to get the ports from the sockets, so use them
David Reid [Fri, 3 Nov 2000 02:15:50 +0000 (02:15 +0000)]
We have functions that allow us to get the ports from the sockets, so use them
here.

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

24 years agoDocument mod_log_config %c option
Bill Stoddard [Fri, 3 Nov 2000 01:36:51 +0000 (01:36 +0000)]
Document mod_log_config %c option

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

24 years agoAdd a new LogFormat directive, %c, that will log connection
Bill Stoddard [Fri, 3 Nov 2000 01:31:37 +0000 (01:31 +0000)]
Add a new LogFormat directive, %c, that will log connection
status at the end of the response as follows:
 'X' - connection aborted before the response completed.
 '+' - connection may be kept-alive by the server.
 '-' - connection will be closed by the server.

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

24 years agoIt doesn't make any sense to set a CHUNK flag in the BUFF, because the
Ryan Bloom [Thu, 2 Nov 2000 22:53:57 +0000 (22:53 +0000)]
It doesn't make any sense to set a CHUNK flag in the BUFF, because the
BUFF isn't used for output anymore.

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

24 years agoFix last commit which was done from the wrong tree which contained
Sascha Schumann [Thu, 2 Nov 2000 21:31:37 +0000 (21:31 +0000)]
Fix last commit which was done from the wrong tree which contained
an incomplete version of the default_handler change.

This version gets always rid of the request body, regardless of the
method.

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

24 years agoRemove some more BUFF code. This makes the 100 continue code use buckets
Ryan Bloom [Thu, 2 Nov 2000 21:10:29 +0000 (21:10 +0000)]
Remove some more BUFF code.  This makes the 100 continue code use buckets
instead of BUFF.

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

24 years agoMake the default handler read the dechunked request body on a POST request.
Sascha Schumann [Thu, 2 Nov 2000 20:48:48 +0000 (20:48 +0000)]
Make the default handler read the dechunked request body on a POST request.

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

24 years agoFix the core_output_filter to work with FLUSH buckets. With this change,
Ryan Bloom [Thu, 2 Nov 2000 20:33:48 +0000 (20:33 +0000)]
Fix the core_output_filter to work with FLUSH buckets.  With this change,
when the core sees a FLUSH bucket, we automatically send everything to the
network.

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

24 years ago Solve the os_is_absolute_path problem for the moment.
William A. Rowe Jr [Thu, 2 Nov 2000 20:05:00 +0000 (20:05 +0000)]
  Solve the os_is_absolute_path problem for the moment.

  This is -not- the permanent patch for 2.0, simply a placeholder till we
  have the canonical name implemented in APR for good.

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

24 years ago Two patches (sorry), first to clean up the double assignment of the
William A. Rowe Jr [Thu, 2 Nov 2000 20:01:52 +0000 (20:01 +0000)]
  Two patches (sorry), first to clean up the double assignment of the
  r->content_type value on UNICODE_FS, and the second to add ETag and
  Modified-Date to the file listing.  If anyone sees an objection to
  this thing, please scream (loudly) before I go and attack 1.3.x with
  the ETag/Modified-Date Friday a.m.

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

24 years agoCreate a feature macro that determines if Autoconf was used to configure
Ryan Bloom [Thu, 2 Nov 2000 18:51:08 +0000 (18:51 +0000)]
Create a feature macro that determines if Autoconf was used to configure
the server.  The ap_ugly_hack variable is only valid if Autoconf was used
for the configuration.

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

24 years agoap_http_header_filter() can't remove itself until after we the
Jeff Trawick [Thu, 2 Nov 2000 15:42:56 +0000 (15:42 +0000)]
ap_http_header_filter() can't remove itself until after we the
CHUNK filter has been added.  Otherwise, f->next won't be the
CHUNK filter and thus the first brigade won't be chunked
properly.
Reported by: wrowe

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

24 years agoIn writev_it_all(), tell the caller how many bytes were sent.
Jeff Trawick [Thu, 2 Nov 2000 12:27:05 +0000 (12:27 +0000)]
In writev_it_all(), tell the caller how many bytes were sent.

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

24 years ago Get Win32 building again.
William A. Rowe Jr [Thu, 2 Nov 2000 04:46:42 +0000 (04:46 +0000)]
  Get Win32 building again.

Submitted by: John Sterling <sterling@covalent.net>
Reviewed by: wrowe

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

24 years ago Get win32 building again... we need something just a little more sophisticated...
William A. Rowe Jr [Thu, 2 Nov 2000 04:44:43 +0000 (04:44 +0000)]
  Get win32 building again... we need something just a little more sophisticated here

Submitted by: John Sterling <sterling@covalent.net
Reviewed by: rbb, wrowe

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

24 years ago Cause the command line version of mpm_winnt to do nothing with the
William A. Rowe Jr [Thu, 2 Nov 2000 03:54:23 +0000 (03:54 +0000)]
  Cause the command line version of mpm_winnt to do nothing with the
  service config unless the -k run argument is provided.

Submitted by: John Sterling <sterling@covalent.net>
Reviewed by: William Rowe

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

24 years agoSimplify the configuration mechanisms for threading in APR.
Greg Stein [Thu, 2 Nov 2000 03:30:36 +0000 (03:30 +0000)]
Simplify the configuration mechanisms for threading in APR.
Revise how Apache configs APR and allow MPMs (or other config scripts) to
    pass cmd line params down to APR. For the MPMs that specifically require
    or disallow threads, have them force APR threads on/off.

Submitted by: Joe Orton <joe@light.plus.com>
Reviewed by: Greg Stein

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

24 years agoGet rid of some warnings on Solaris 8 by using APR's ctype macros:
Jeff Trawick [Thu, 2 Nov 2000 02:12:34 +0000 (02:12 +0000)]
Get rid of some warnings on Solaris 8 by using APR's ctype macros:
logresolve.c: In function `main':
logresolve.c:327: warning: subscript has type `char'
ab.c: In function `main':
ab.c:1074: warning: subscript has type `char'
ab.c:1087: warning: subscript has type `char'

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

24 years agoBring forward from 1.3. Some of this is obviously not correct in 2.0.
Joshua Slive [Wed, 1 Nov 2000 20:28:56 +0000 (20:28 +0000)]
Bring forward from 1.3.  Some of this is obviously not correct in 2.0.

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

24 years agoFix in regex example.
Joshua Slive [Wed, 1 Nov 2000 19:18:03 +0000 (19:18 +0000)]
Fix in regex example.
PR: 6777

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

24 years agoCreate the pool bucket after we know the true length, because
Jeff Trawick [Wed, 1 Nov 2000 18:42:55 +0000 (18:42 +0000)]
Create the pool bucket after we know the true length, because
(currently) we can't shorten the length of such a bucket by
setting e->length.  (We could split and then remove the extra
bucket, but this seems cleaner.  We may still want to have a
way to shorten a bucket, but there isn't a pressing need for
that at the moment.)

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

24 years agoDon't include a '\0' in the header. (I'm still seeing more binary stuff
Jeff Trawick [Wed, 1 Nov 2000 18:24:11 +0000 (18:24 +0000)]
Don't include a '\0' in the header.  (I'm still seeing more binary stuff
in the header, but one fix at a time...)

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

24 years agoComment fixes.. just to get them out of my tree
Sascha Schumann [Wed, 1 Nov 2000 18:10:15 +0000 (18:10 +0000)]
Comment fixes.. just to get them out of my tree

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

24 years agoUpdate the main doc page to a two-column format, and add a new section
Joshua Slive [Wed, 1 Nov 2000 18:06:37 +0000 (18:06 +0000)]
Update the main doc page to a two-column format, and add a new section
called "Using the Apache HTTP Server" for task-oriented docs.  Also,
remove some of the "other notes" links that are more or less obsolete.
They are still available on a sub-page.

This is a little fancier than the old one, which I know will annoy
some people.  Oh well.

The design and HTML coding comes mostly from Carlos, but I messed it
up and changed stuff.  Blame Joshua for any errors.

Submitted by: Carlos Ramirez <cramirez@gte.net>, Joshua Slive

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

24 years agoGet rid of a couple of buff calls by manipulating the APR socket
Jeff Trawick [Wed, 1 Nov 2000 15:44:42 +0000 (15:44 +0000)]
Get rid of a couple of buff calls by manipulating the APR socket
timeout directly.

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

24 years agoFix a buglet in the APR-ization of ap_lingering_close() -- use APR_SO_TIMEOUT
Jeff Trawick [Wed, 1 Nov 2000 15:42:50 +0000 (15:42 +0000)]
Fix a buglet in the APR-ization of ap_lingering_close() -- use APR_SO_TIMEOUT
instead of BO_TIMEOUT.  (We were actually setting a different socket option.)

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

24 years agoPrevent a compile warning on FreeBSD by making pointers const (only needed
Jeff Trawick [Wed, 1 Nov 2000 13:03:01 +0000 (13:03 +0000)]
Prevent a compile warning on FreeBSD by making pointers const (only needed
for data, but not harmful for functions)

old warning: "exports.c:59: warning: initialization discards `const' from pointer target type"

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

24 years agoForgot one variable when I re-created the patch.
Ryan Bloom [Wed, 1 Nov 2000 06:05:00 +0000 (06:05 +0000)]
Forgot one variable when I re-created the patch.

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

24 years agoFix canned-errors and OPTIONS requests, so that we don't allocate 8k
Ryan Bloom [Wed, 1 Nov 2000 06:02:22 +0000 (06:02 +0000)]
Fix canned-errors and OPTIONS requests, so that we don't allocate 8k
for the headers.  We count the number of bytes we expect to get and only
allocation that many bytes.

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

24 years agoStop always allocating 8k for each request. We now count the number
Ryan Bloom [Wed, 1 Nov 2000 05:15:25 +0000 (05:15 +0000)]
Stop always allocating 8k for each request.  We now count the number
of bytes required for the headers for each request, and we just allocate
that number of bytes plus 100 extra.  The extra 100 are a fudge factor,
because it is a bit difficult to compute the exact length for the
basic HTTP headers like date and the status line.

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

24 years agoClean up the http filter a lot. Instead of sending a bucket per header,
Ryan Bloom [Wed, 1 Nov 2000 00:52:06 +0000 (00:52 +0000)]
Clean up the http filter a lot.  Instead of sending a bucket per header,
we now create a single bucket that has all of the headers and send that.
One known issue is that this limits the headers to 8k, but it is a minor
patch to fix that.

This also stops us from exporting ap_send_header_field.  This function no
longer makes sense to export.

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

24 years agoRemove a BUFF function that isn't used anyplace.
Ryan Bloom [Wed, 1 Nov 2000 00:08:33 +0000 (00:08 +0000)]
Remove a BUFF function that isn't used anyplace.

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

24 years agoa couple of fixes for byte ranges:
Jeff Trawick [Tue, 31 Oct 2000 19:59:09 +0000 (19:59 +0000)]
a couple of fixes for byte ranges:
. use %qx format instead of %llx for 64-bit integer (apr_time_t);
  %llx prints as "%llx"
. pass offset and length to ap_bucket_create_mmap() so that byte
  ranges work with mmaps (at least for a single range)

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

24 years agoexports.c is generated.
Jeff Trawick [Tue, 31 Oct 2000 12:34:10 +0000 (12:34 +0000)]
exports.c is generated.

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

24 years agoCompute the content length (and add appropriate header field) for
Jeff Trawick [Tue, 31 Oct 2000 12:30:22 +0000 (12:30 +0000)]
Compute the content length (and add appropriate header field) for
the response when no content length is available and we can't use
chunked encoding.

This is going to be painful when the response body is huge, so I
suspect we'll have additional criteria in the future.

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

24 years agoCleanup some warnings in mod_auth_digest.c
Ryan Bloom [Tue, 31 Oct 2000 01:02:33 +0000 (01:02 +0000)]
Cleanup some warnings in mod_auth_digest.c

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

24 years agoMod_auth_db.c compiles cleanly now.
Ryan Bloom [Tue, 31 Oct 2000 00:53:34 +0000 (00:53 +0000)]
Mod_auth_db.c compiles cleanly now.

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

24 years agoMake mod_cgi and mod_include work when compiled as DSO's again. This is
Ryan Bloom [Tue, 31 Oct 2000 00:47:24 +0000 (00:47 +0000)]
Make mod_cgi and mod_include work when compiled as DSO's again.  This is
accomplished by moving suexec out of it's own file and into unixd.[ch].
The problem was that suexec.c wasn't being linked into the server unless
a module was actually using ap_os_create_process.  This is still not clean,
but it works now.

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

24 years agoThis is an ugly little hack to allow DSO modules to work. This basically
Ryan Bloom [Mon, 30 Oct 2000 23:08:27 +0000 (23:08 +0000)]
This is an ugly little hack to allow DSO modules to work.  This basically
forces Apache to link in all of the APR functions whether they are used
by any static modules or not.

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

24 years agoMake mod_auth_dbm compile cleanly.
Ryan Bloom [Mon, 30 Oct 2000 20:45:38 +0000 (20:45 +0000)]
Make mod_auth_dbm compile cleanly.

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

24 years agoMake mod_auth_db compile cleanly in 2.0
Ryan Bloom [Mon, 30 Oct 2000 20:13:04 +0000 (20:13 +0000)]
Make mod_auth_db compile cleanly in 2.0

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

24 years agoGet mod_auth_anon to compile cleanly in 2.0
Ryan Bloom [Mon, 30 Oct 2000 19:52:09 +0000 (19:52 +0000)]
Get mod_auth_anon to compile cleanly in 2.0

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

24 years agoFix a const problem.
Ryan Bloom [Mon, 30 Oct 2000 19:30:55 +0000 (19:30 +0000)]
Fix a const problem.

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

24 years agoRemove the suexec patch from mod_mime_magic
Ryan Bloom [Mon, 30 Oct 2000 17:09:19 +0000 (17:09 +0000)]
Remove the suexec patch from mod_mime_magic

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

24 years agoinitial commit of mod_ext_filter code and documentation
Jeff Trawick [Sat, 28 Oct 2000 15:17:41 +0000 (15:17 +0000)]
initial commit of mod_ext_filter code and documentation

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

24 years agonote some filter configuration issues
Jeff Trawick [Sat, 28 Oct 2000 14:57:36 +0000 (14:57 +0000)]
note some filter configuration issues

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

24 years agoDon't truncate the string if a RewriteMap lookup has a syntax error.
Tony Finch [Sat, 28 Oct 2000 03:06:22 +0000 (03:06 +0000)]
Don't truncate the string if a RewriteMap lookup has a syntax error.
Submitted by:   erik quanstrom <quanstro@clark.net>

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

24 years agoCreate modules.c in the build tree. This file depends on your configuration
Sascha Schumann [Fri, 27 Oct 2000 21:54:28 +0000 (21:54 +0000)]
Create modules.c in the build tree. This file depends on your configuration
and thus cannot be shared by multiple build trees.

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

24 years agoClean up a few incompatible pointer types (int * vs. unsigned int *).
Jeff Trawick [Thu, 26 Oct 2000 12:03:07 +0000 (12:03 +0000)]
Clean up a few incompatible pointer types (int * vs. unsigned int *).
Submitted by: Cliff Woolley <cliffwoolley@yahoo.com>
Reviewed by: Jeff Trawick

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

24 years agoOut goes the EBCDIC issue, in goes the error message issue.
Jeff Trawick [Thu, 26 Oct 2000 11:36:10 +0000 (11:36 +0000)]
Out goes the EBCDIC issue, in goes the error message issue.

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

24 years agoGet rid of some outdated character set translation cruft.
Jeff Trawick [Thu, 26 Oct 2000 11:34:04 +0000 (11:34 +0000)]
Get rid of some outdated character set translation cruft.

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

24 years agoEBCDIC support: convert protocol data in getline() and
Jeff Trawick [Thu, 26 Oct 2000 11:05:07 +0000 (11:05 +0000)]
EBCDIC support: convert protocol data in getline() and
ap_send_header_field(); change terminate_header() to build the
CRLF in ASCII to begin with.

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

24 years ago Introduce ap_xlate_proto_{to|from}_ascii() to clean up some of
Jeff Trawick [Thu, 26 Oct 2000 10:48:28 +0000 (10:48 +0000)]
 Introduce ap_xlate_proto_{to|from}_ascii() to clean up some of
the EBCDIC support.  They are noops on ASCII machines, so this
type of translation doesn't have to be surrounded by #ifdef
CHARSET_EBCDIC.

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

24 years agoGet rid of the xlate version of ap_md5_digest()
Jeff Trawick [Wed, 25 Oct 2000 18:54:20 +0000 (18:54 +0000)]
Get rid of the xlate version of ap_md5_digest()
since we don't compute digests of filtered (e.g., translated)
response bodies this way anymore.  (Note that we don't do it at
all at the present; somebody needs to write a filter to do so.)

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

24 years agoOn an EBCDIC machine, be willing to translate mod_autoindex-
Jeff Trawick [Wed, 25 Oct 2000 17:32:52 +0000 (17:32 +0000)]
On an EBCDIC machine, be willing to translate mod_autoindex-
generated output.  Otherwise, it doesn't look too cool.

XXX This isn't a perfect fix because this doesn't trigger us
to convert from the charset of the source code to ASCII.  The
general solution seems to be to allow a generator to set an
indicator in the r specifying that the body is coded in the
implementation character set (i.e., the charset of the source
code).  This would get several different types of documents
translated properly: mod_autoindex output, mod_status output,
mod_info output, hard-coded error documents, etc.

Problem reported by: Martin Kraemer

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

24 years agoDon't segfault if the filter doesn't have any request config prepared.
Jeff Trawick [Wed, 25 Oct 2000 16:49:14 +0000 (16:49 +0000)]
Don't segfault if the filter doesn't have any request config prepared.
This can happen when the config doesn't tell us to do anything but the
administrator coded us in Add{Input|Output}Filter.  Instead of segfaulting,
we turn into a noop.

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

24 years agoEBCDIC: Make chunk_filter() write chunk headers/trailers in ASCII.
Jeff Trawick [Wed, 25 Oct 2000 15:42:38 +0000 (15:42 +0000)]
EBCDIC: Make chunk_filter() write chunk headers/trailers in ASCII.

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

24 years agoFix a typo in a comment.
Jeff Trawick [Wed, 25 Oct 2000 15:03:52 +0000 (15:03 +0000)]
Fix a typo in a comment.
Submitted by: Chris Pepper <pepper@mail.reppep.com>
Reviewed by: Jeff Trawick

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

24 years agoensure that all cpp directives start with a # in column one
Tony Finch [Wed, 25 Oct 2000 15:03:03 +0000 (15:03 +0000)]
ensure that all cpp directives start with a # in column one
PR: 6742

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

24 years agonot raining
Jeff Trawick [Wed, 25 Oct 2000 11:15:01 +0000 (11:15 +0000)]
not raining

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

24 years agoGet rid of a // comment so we compile on OS/390 without the funky
Jeff Trawick [Wed, 25 Oct 2000 11:02:30 +0000 (11:02 +0000)]
Get rid of a // comment so we compile on OS/390 without the funky
compiler option.

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

24 years agoAdd a comment about a requirement with the eos_sent variable.
Ryan Bloom [Wed, 25 Oct 2000 10:47:51 +0000 (10:47 +0000)]
Add a comment about a requirement with the eos_sent variable.

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

24 years agoProvide a bit of doc for the hackish^H^H^H^H^H^H^Hwonderful filter
Jeff Trawick [Wed, 25 Oct 2000 10:39:04 +0000 (10:39 +0000)]
Provide a bit of doc for the hackish^H^H^H^H^H^H^Hwonderful filter
types I introduced yesterday.

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

24 years ago Ok here it is: Win32 utf-8 native unicode filename support.
William A. Rowe Jr [Wed, 25 Oct 2000 02:46:40 +0000 (02:46 +0000)]
  Ok here it is: Win32 utf-8 native unicode filename support.
  There are just too many folks to credit... so this goes out from
  the entire ApacheCon hacking team :-)

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

24 years agoIntroduce more filter types. This gets chunking of output working
Jeff Trawick [Wed, 25 Oct 2000 00:38:04 +0000 (00:38 +0000)]
Introduce more filter types.  This gets chunking of output working
again by ensuring that the chunk filter gets added after the http
headers filter.

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

24 years agoFix SSI syntax errors -- strings inside #if test expressions are either
Tony Finch [Tue, 24 Oct 2000 19:09:55 +0000 (19:09 +0000)]
Fix SSI syntax errors -- strings inside #if test expressions are either
bare or in single quotes, not double quotes.
PR: 6736

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

24 years agoFix mod_include to serve the FAQ correctly. The problem was a couple of
Ryan Bloom [Tue, 24 Oct 2000 18:40:00 +0000 (18:40 +0000)]
Fix mod_include to serve the FAQ correctly.  The problem was a couple of
bugs in get_tag.  This also allows mod_include to save buckets with partial
tags in them.
Submitted by: Ryan Bloom and David Reid

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

24 years agoFix the signature of no_set_limit() to avoid a warning when
Jeff Trawick [Tue, 24 Oct 2000 17:21:41 +0000 (17:21 +0000)]
Fix the signature of no_set_limit() to avoid a warning when
AP_DEBUG is defined. (no_set_limit() is compiled only if we
are missing one of the RLIMIT definitions.)

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