]> granicus.if.org Git - apache/log
apache
24 years agoAdd a flush bucket type. This bucket advises filters to flush any data
Ryan Bloom [Tue, 17 Oct 2000 00:24:36 +0000 (00:24 +0000)]
Add a flush bucket type.  This bucket advises filters to flush any data
they are currently storing.  There is no way we can force them to flush,
but we can advise.  This also adds the code to ap_rflush to use flush
buckets, although it isn't enabled yet.  I will enable it once we remove
buff from the code.  I also removed all calls to ap_rflush that are either
immediately before or immediately after a call to ap_finalize_protocol.
ap_finalize_protocol sends an EOS bucket, which also advises filters to
flush their data, so having both calls right next to each other is
redundant.

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

24 years agoAdd a sub-request filter. This filter just strips the EOS from the
Ryan Bloom [Mon, 16 Oct 2000 23:15:55 +0000 (23:15 +0000)]
Add a sub-request filter.  This filter just strips the EOS from the
brigade generated by the sub-request.  If this is not done, then the
main-request's core_output_filter will get very confused, as will any other
filter in the main-request filter-stack that looks for EOS.

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

24 years agosimplify bookkeeping in getline() to make it run a little faster, and
Greg Ames [Mon, 16 Oct 2000 22:10:41 +0000 (22:10 +0000)]
simplify bookkeeping in getline() to make it run a little faster, and
(hopefully) be easier to understand in the future.

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

24 years agodechunk filter:
Jeff Trawick [Mon, 16 Oct 2000 20:08:14 +0000 (20:08 +0000)]
dechunk filter:
  Get rid of an assertion which assumed that HTTP_IN is the filter
  below us.  Some other filter may play the same role.
ap_setup_client_block():
  Get rid of a commented-out hack which was used to allow chunked
  transport encoding of a request body received by mod_cgi[d].
ap_get_client_block():
  Get rid of special handling for zero-length buckets...  The main
  loop handles that fine.
Submitted by: Ryan Bloom

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

24 years agoinput filtering changes:
Jeff Trawick [Mon, 16 Oct 2000 19:11:53 +0000 (19:11 +0000)]
input filtering changes:
  get dechunking working
  verify that infrastructure for input filters works
    (use existing AddInputFilter directive)

Unlike with my previous patch, ap_get_client_block() saves state between
calls in the core's per-request dir config.

Unlike with my previous patch, HTTP_IN keeps a count of remaining bytes
in the conn_rec.  Code that needs to prod it to deliver a certain amount
of request body plays with conn_rec->remain directly.

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

24 years agoGet rid of some old code related to the way that character set translation
Jeff Trawick [Mon, 16 Oct 2000 18:00:49 +0000 (18:00 +0000)]
Get rid of some old code related to the way that character set translation
of protocol data and bodies was performed in the past.

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

24 years ago Fix compile break in Win32
William A. Rowe Jr [Mon, 16 Oct 2000 13:50:40 +0000 (13:50 +0000)]
  Fix compile break in Win32

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

24 years ago Nice to see we build again on Win32
William A. Rowe Jr [Mon, 16 Oct 2000 06:38:42 +0000 (06:38 +0000)]
  Nice to see we build again on Win32

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

24 years ago Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
William A. Rowe Jr [Mon, 16 Oct 2000 06:05:15 +0000 (06:05 +0000)]
  Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
  for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
  and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
  All _VAR_ flavors changes to _DATA to be absolutely clear.
  Thank you Greg, for the most obvious suggestion.

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

24 years ago Cleaning up a _Security_ concern - Please Review Carefully
William A. Rowe Jr [Mon, 16 Oct 2000 03:43:44 +0000 (03:43 +0000)]
  Cleaning up a _Security_ concern - Please Review Carefully

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

24 years ago More docs of oddities.
William A. Rowe Jr [Mon, 16 Oct 2000 03:39:10 +0000 (03:39 +0000)]
  More docs of oddities.

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

24 years ago Document more bad Win32 behavior... if the url isn't .exe, then don't
William A. Rowe Jr [Mon, 16 Oct 2000 03:37:20 +0000 (03:37 +0000)]
  Document more bad Win32 behavior... if the url isn't .exe, then don't
  throw an .exe

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

24 years ago Adds quick access to the must-haves (STATUS/CHANGES) and group the apr
William A. Rowe Jr [Mon, 16 Oct 2000 03:32:24 +0000 (03:32 +0000)]
  Adds quick access to the must-haves (STATUS/CHANGES) and group the apr
  library in to functional units

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

24 years agothe zero-length hash key is valid. use (-1) as the discrimnator for
Greg Stein [Mon, 16 Oct 2000 02:58:15 +0000 (02:58 +0000)]
the zero-length hash key is valid. use (-1) as the discrimnator for
auto-computed string-length hash keys

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

24 years ago Some issues with the dependencies that prevent a clean checkout from
William A. Rowe Jr [Sun, 15 Oct 2000 22:49:48 +0000 (22:49 +0000)]
  Some issues with the dependencies that prevent a clean checkout from
  actually building under win32

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

24 years agoTidy up some types.
David Reid [Sun, 15 Oct 2000 22:42:59 +0000 (22:42 +0000)]
Tidy up some types.

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

24 years ago This is a pretty significant cleanup of things already moved to OS2's
William A. Rowe Jr [Sun, 15 Oct 2000 20:13:24 +0000 (20:13 +0000)]
  This is a pretty significant cleanup of things already moved to OS2's
  APR - Brian, please review closely.

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

24 years ago Cleanup ap_os_kill from TPF and unix. Maintainers please validate.
William A. Rowe Jr [Sun, 15 Oct 2000 19:58:01 +0000 (19:58 +0000)]
  Cleanup ap_os_kill from TPF and unix.  Maintainers please validate.

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

24 years ago Just some symbol cleanup from grep'ping sources.
William A. Rowe Jr [Sun, 15 Oct 2000 19:55:36 +0000 (19:55 +0000)]
  Just some symbol cleanup from grep'ping sources.
  BS2000 maintainer please verify.

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

24 years ago Eliminating a bunch-o-junk from the Win32 os.h header that now lives
William A. Rowe Jr [Sun, 15 Oct 2000 19:38:50 +0000 (19:38 +0000)]
  Eliminating a bunch-o-junk from the Win32 os.h header that now lives
  in apr or isn't used.  Please review closely (every symbol removed was
  grep't for, and no references were found.)

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

24 years agoStop using the index into the array for the bucket type. Now we just use
Ryan Bloom [Sun, 15 Oct 2000 18:15:13 +0000 (18:15 +0000)]
Stop using the index into the array for the bucket type.  Now we just use
a pointer to a static structure.  The ap_foo_type functions have also been
replaced with simple macro calls.  I am going to replace the
ap_bucket_(read|split|setaside|destroy) functions with macros soon.
Reviewed by: Will Rowe

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

24 years agoSome fixes and a general tidy up of ab. With these changes ab can now
David Reid [Sun, 15 Oct 2000 11:46:22 +0000 (11:46 +0000)]
Some fixes and a general tidy up of ab.  With these changes ab can now
support concurrency levels > 1 against the loopback on BONE and will
actually use all the connections it starts.

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

24 years ago Change to buckets for isapi output. Still requires emulation of IO
William A. Rowe Jr [Sat, 14 Oct 2000 23:18:52 +0000 (23:18 +0000)]
  Change to buckets for isapi output.  Still requires emulation of IO
  Completion/Async behavior, but a non-async REQ_HSE_TRANSMIT_FILE is
  now implemented.

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

24 years agoGet dav-fs building again.
David Reid [Sat, 14 Oct 2000 18:24:33 +0000 (18:24 +0000)]
Get dav-fs building again.

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

24 years agoCleanup ap_get_client_block a bit. All of the code that I am removing
Ryan Bloom [Sat, 14 Oct 2000 06:53:02 +0000 (06:53 +0000)]
Cleanup ap_get_client_block a bit.  All of the code that I am removing
doesn't actually do anything useful, it was meant to remove all zero
length buckets before trying to read from the brigade.  However, it is
perfectly fine to not do this, and to just read those buckets along with
the rest of them.

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

24 years agoMy last patch had most of the code to insert the eos bucket, but it was
Ryan Bloom [Sat, 14 Oct 2000 06:21:38 +0000 (06:21 +0000)]
My last patch had most of the code to insert the eos bucket, but it was
missing some major pieces that I only found after the commit.  This patch
fixes the problem, and makes sure that request bodies are always ended
with an EOS bucket.

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

24 years agoGet non-chunked input body filtering working with an EOS bucket. The
Ryan Bloom [Sat, 14 Oct 2000 04:37:22 +0000 (04:37 +0000)]
Get non-chunked input body filtering working with an EOS bucket.  The
basic design has ap_setup_client_block setting a field in the conn_rec
which tells http_filter how much data is in the body (with chunking this
will represent how much data is in the chunk).  The ap_get_client_block
then calls down the stack with the maximum amount of data that it can
receive back.  When http_filter reads all of the data, it adds an eos
bucket to the end of the brigade.  ap_get_client_block continues to read
data until it gets the eos bucket.  This allows filters to increase the
size of the body data.

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

24 years agoForgot to change the title.
Joshua Slive [Sat, 14 Oct 2000 02:46:06 +0000 (02:46 +0000)]
Forgot to change the title.

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

24 years agoIntroduce ap_debug_assert() macro, like ap_assert() but only active if
Jeff Trawick [Fri, 13 Oct 2000 18:39:18 +0000 (18:39 +0000)]
Introduce ap_debug_assert() macro, like ap_assert() but only active if
AP_DEBUG is defined.

ap_get_client_block():
. avoid some cases where we leak a temporary bucket brigade
. clean up/fix the logic to copy a brigade into the caller's buffer;
  the wrong length was used in some cases
. add an AP_DEBUG-only assertion for some assumptions made regarding
  the brigade returned by the filters

Submitted by: partly by Greg Stein, but of course anything bad is mine

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

24 years agogetline() fixes...
Jeff Trawick [Fri, 13 Oct 2000 17:54:24 +0000 (17:54 +0000)]
getline() fixes...

If ap_get_brigade() returns APR_SUCCESS but an empty brigade, bail out.
Previously, we kept going and sometimes segfaulted while operating on
what we thought was the first bucket.

Free the temporary brigade used by getline().

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

24 years agoAdd a #else back into http_core.c, so that this compiles on Unix again.
Ryan Bloom [Fri, 13 Oct 2000 17:36:51 +0000 (17:36 +0000)]
Add a #else back into http_core.c, so that this compiles on Unix again.

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

24 years ago Completes the port of the <Directory /> handling for Win32... there is
William A. Rowe Jr [Fri, 13 Oct 2000 16:57:21 +0000 (16:57 +0000)]
  Completes the port of the <Directory /> handling for Win32... there is
  still a patch needed for OS2 ... Brian?

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

24 years agoRemove all function pointers from the ap_bucket type. These function
Ryan Bloom [Fri, 13 Oct 2000 05:35:57 +0000 (05:35 +0000)]
Remove all function pointers from the ap_bucket type.  These function
pointers are replaced with a global table that allows modules to register
their bucket types.  Those bucket types are then allowed to be used in
the server processing.  This also required removing all direct calls to
those functions.  The ap_bucket type has an index into an array, so in
each ap_bucket_* function, we use that index to find the correct set of
functions.

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

24 years agomod_cgid: In the handler, shut down the Unix socket (only for write)
Jeff Trawick [Fri, 13 Oct 2000 03:38:35 +0000 (03:38 +0000)]
mod_cgid: In the handler, shut down the Unix socket (only for write)
once we finish writing the request body to the cgi child process;
otherwise, the client doesn't hit EOF on stdin.  Small request bodies
worked without this change (for reasons I don't understand), but large
ones didn't.

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

24 years agoFix a couple of problems related to large request bodies:
Jeff Trawick [Fri, 13 Oct 2000 03:12:54 +0000 (03:12 +0000)]
Fix a couple of problems related to large request bodies:
  http_filter() - this was referencing e->length even though e->length
    is sometimes -1 (if we have to read the socket bucket to get the
    next bit of the request body); now it does e->read() to force a
    socket need if required
  ap_get_client_block() - this was getting a brigade back with the
    desired amount of data (yeah, right) but only copying out the first
    bucket

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

24 years agoFix a typo from earlier today. The filters accept apr_ssize_t's, so the
Ryan Bloom [Fri, 13 Oct 2000 00:02:06 +0000 (00:02 +0000)]
Fix a typo from earlier today.  The filters accept apr_ssize_t's, so the
get_brigade code should also use apr_ssize_t.
Submitted by: Greg Stein

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

24 years ago Modify ap_make_dirstr_prefix, platforms with HAVE_DRIVE_LETTERS or NETWARE
William A. Rowe Jr [Thu, 12 Oct 2000 19:45:56 +0000 (19:45 +0000)]
  Modify ap_make_dirstr_prefix, platforms with HAVE_DRIVE_LETTERS or NETWARE
  can request 0 elements, returning the '/' root.
  [William Rowe, Tim Costello]  from 1.3, with documentation

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

24 years agoMake http_filter go a little faster. Remove unused #define.
Greg Ames [Thu, 12 Oct 2000 19:30:11 +0000 (19:30 +0000)]
Make http_filter go a little faster.  Remove unused #define.

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

24 years agoClean up obsolete modules.
Joshua Slive [Thu, 12 Oct 2000 18:18:13 +0000 (18:18 +0000)]
Clean up obsolete modules.

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

24 years agoRemove the offset field from ap_bucket type. This is a file bucket
Ryan Bloom [Thu, 12 Oct 2000 18:01:30 +0000 (18:01 +0000)]
Remove the offset field from ap_bucket type.  This is a file bucket
specific value, and therefore it belongs in the ap_bucket_file type,
which was also created with this commit.  ap_bucket needs to be as generic
as possible to make it easily extensible, which means we have to keep
the generic ap_bucket type very separate from ap_bucket_foo.

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

24 years agoImplement a length argument on input filters. There are three possible
Ryan Bloom [Thu, 12 Oct 2000 16:35:39 +0000 (16:35 +0000)]
Implement a length argument on input filters.  There are three possible
values for the length, -1, 0, and a positive number.  -1 means that the
next filter should return all the data it has, the current filter will
take care to ensure that the protocol is followed.  Most filters will
never use this, because it implies they are implementing a conn_based
input filter.  0 means give me exactly one line of data.  A positive
number means give me a maximum of n bytes.

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

24 years ago Move more path parsing fixes forward from 1.3
William A. Rowe Jr [Thu, 12 Oct 2000 14:22:30 +0000 (14:22 +0000)]
  Move more path parsing fixes forward from 1.3

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

24 years ago I hope this clarifies. Greg is absolutely correct, there is no need for
William A. Rowe Jr [Thu, 12 Oct 2000 06:14:30 +0000 (06:14 +0000)]
  I hope this clarifies.  Greg is absolutely correct, there is no need for
  any modules symbol other than AP_MODULE_DECLARE_DATA, since module .h
  files containing imports and exports imply something more sophisticated,
  as the early mod_dav.c example illustrated.

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

24 years agoA small cleanup for ap_get_client_block.
Ryan Bloom [Thu, 12 Oct 2000 05:40:46 +0000 (05:40 +0000)]
A small cleanup for ap_get_client_block.

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

24 years agoWe never actually store anything in input_data (from the conn_rec), so it
Ryan Bloom [Thu, 12 Oct 2000 04:47:21 +0000 (04:47 +0000)]
We never actually store anything in input_data (from the conn_rec), so it
doesn't make much sense to check to see if there is something there.  This
removes the input_data brigade from the conn_rec altogether.  There is no
good reason for a filter to be accessing a bucket brigade from within the
conn_rec.  This shouldn't be here anymore, just like the output_filter
shouldn't be storing the data in the conn_rec.

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

24 years agoThese functions aren't used by any module, and they don't make any sense
Ryan Bloom [Thu, 12 Oct 2000 04:20:36 +0000 (04:20 +0000)]
These functions aren't used by any module, and they don't make any sense
with the bucket design, so they need to go away.

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

24 years agoThese BUFFs aren't used anymore, so they should be removed from the
Ryan Bloom [Thu, 12 Oct 2000 04:12:52 +0000 (04:12 +0000)]
These BUFFs aren't used anymore, so they should be removed from the
cgid module.

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

24 years agominor updates for a7 release data and missing buff functionality
Jeff Trawick [Thu, 12 Oct 2000 03:59:12 +0000 (03:59 +0000)]
minor updates for a7 release data and missing buff functionality

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

24 years agoThis is pretty much the wrong solution, but at least it makes POSTs work
Ryan Bloom [Thu, 12 Oct 2000 03:57:45 +0000 (03:57 +0000)]
This is pretty much the wrong solution, but at least it makes POSTs work
again.  Chunking input doesn't work with this change, but that is because
this is a stop-gap to get POSTs working again.

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

24 years agoGet rid of some compile warnings on systems with no sendfile and/or lack of
Jeff Trawick [Thu, 12 Oct 2000 03:17:36 +0000 (03:17 +0000)]
Get rid of some compile warnings on systems with no sendfile and/or lack of
one or more rlimit controls.  (Solaris 2.8 hits both of these.)

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

24 years agoIn read_request_line(), we don't have to check any sort of EOF flag
Jeff Trawick [Thu, 12 Oct 2000 02:54:38 +0000 (02:54 +0000)]
In read_request_line(), we don't have to check any sort of EOF flag
anymore because getline() returns < 0 upon EOF.
There are also a few very minor tweaks to getline() -- remove an
unused variable, remove a couple of unnecessary comments, simplify
an error path.

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

24 years agoClean up input filtering & getline() some more. Character mode telnet now
Greg Ames [Thu, 12 Oct 2000 01:59:09 +0000 (01:59 +0000)]
Clean up input filtering & getline() some more.  Character mode telnet now
works for me, but please beat it up and review.

Submitted by: Jeff Trawick, Greg Ames

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

24 years agoAvoid swap-til-you-drop by cutting off a loop once the client closes.
Jeff Trawick [Thu, 12 Oct 2000 01:50:51 +0000 (01:50 +0000)]
Avoid swap-til-you-drop by cutting off a loop once the client closes.

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

24 years agoJust a scratch of a start of an upgrading doc. It would help if people
Joshua Slive [Thu, 12 Oct 2000 00:19:37 +0000 (00:19 +0000)]
Just a scratch of a start of an upgrading doc.  It would help if people
note any changes here that will affect end-user configuration.

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

24 years agoClean up the input filtering a lot. This makes the code a bit easier
Ryan Bloom [Wed, 11 Oct 2000 23:27:03 +0000 (23:27 +0000)]
Clean up the input filtering a lot.  This makes the code a bit easier
to follow.  This code works for browser based requests and line-based
telnet requests.  It is untested with character-based telnet requests.
I will be testing that very soon.

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

24 years agoChange env.html from a specific discussion of special-purpose environment
Joshua Slive [Wed, 11 Oct 2000 21:56:54 +0000 (21:56 +0000)]
Change env.html from a specific discussion of special-purpose environment
variables to a general discussion of environment variables in Apache.

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

24 years agoCleanup the input filtering a bit. This does not work with telnet
Ryan Bloom [Wed, 11 Oct 2000 18:32:19 +0000 (18:32 +0000)]
Cleanup the input filtering a bit.  This does not work with telnet
currently, but it is a step in the right direction.  Input filtering
should be slowly improving from here on out.
Submitted by: Greg Ames, Ryan Bloom, Jeff Trawick

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

24 years agoCVS goodness...
David Reid [Wed, 11 Oct 2000 17:59:23 +0000 (17:59 +0000)]
CVS goodness...

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

24 years ago Reflect the ApacheModuleBleck -> mod_bleck rename for Win32.
William A. Rowe Jr [Wed, 11 Oct 2000 17:49:05 +0000 (17:49 +0000)]
  Reflect the ApacheModuleBleck -> mod_bleck rename for Win32.

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

24 years agoIn getline() and ap_get_client_block(), use ap_bucket_destroy()
Jeff Trawick [Wed, 11 Oct 2000 17:37:22 +0000 (17:37 +0000)]
In getline() and ap_get_client_block(), use ap_bucket_destroy()
instead of bucket->destroy().  bucket->destroy() wasn't being
called correctly and also we were leaking the storage for the
bucket itself since bucket->destroy() doesn't free the ap_bucket.
Submitted by: Ryan Bloom, Jeff Trawick

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

24 years ago A star is born ... adds mod_dav and mod_dav_fs to the Win32 build/install
William A. Rowe Jr [Wed, 11 Oct 2000 17:25:07 +0000 (17:25 +0000)]
  A star is born ... adds mod_dav and mod_dav_fs to the Win32 build/install

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

24 years ago Here it is, mod_dav should build quite nicely on Win32 (two last mild
William A. Rowe Jr [Wed, 11 Oct 2000 17:23:55 +0000 (17:23 +0000)]
  Here it is, mod_dav should build quite nicely on Win32 (two last mild
  warnings to contend with.)

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

24 years ago Read the /D symbol declaration in this patch with the next patch to
William A. Rowe Jr [Wed, 11 Oct 2000 17:22:58 +0000 (17:22 +0000)]
  Read the /D symbol declaration in this patch with the next patch to
  mod_dav.c sources, and things should make a world of sense.

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

24 years ago Regardless of reaction to a symbol rename -within- the sources, these
William A. Rowe Jr [Wed, 11 Oct 2000 17:20:12 +0000 (17:20 +0000)]
  Regardless of reaction to a symbol rename -within- the sources, these
  external symbols change for clarity.

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

24 years ago Parallels the commit to apr.h.in/apr.hw for the apache core library.
William A. Rowe Jr [Wed, 11 Oct 2000 17:08:39 +0000 (17:08 +0000)]
  Parallels the commit to apr.h.in/apr.hw for the apache core library.
  Only mod_dav/mod_dav_fs and ap_hooks.h (as best examples) will use these
  symbols until it is acceptable to all or the new symbols are backed out.

  This symbol rename will have the unique quality that
  strlen("API_EXPORT") == strlen("AP_DECLARE"), therefore the mass symbol
  rename will not throw off function continuation lines.

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

24 years ago Get rid of some darned ugly exception lists
William A. Rowe Jr [Wed, 11 Oct 2000 16:53:43 +0000 (16:53 +0000)]
  Get rid of some darned ugly exception lists

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

24 years ago Finish the ApacheModuleBleck -> mod_bleck cleanup
William A. Rowe Jr [Wed, 11 Oct 2000 14:26:00 +0000 (14:26 +0000)]
  Finish the ApacheModuleBleck -> mod_bleck cleanup

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

24 years ago Second half of the ugly name to nice name change. Clean your tree
William A. Rowe Jr [Wed, 11 Oct 2000 14:04:39 +0000 (14:04 +0000)]
  Second half of the ugly name to nice name change.  Clean your tree
  before you grab this set :-)

Reviewed by: rbb, stoddard

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

24 years ago MSVC Project Rename - ApacheModuleBleck.* is no longer... now mod_bleck.*
William A. Rowe Jr [Wed, 11 Oct 2000 13:53:03 +0000 (13:53 +0000)]
  MSVC Project Rename - ApacheModuleBleck.* is no longer... now mod_bleck.*

Reviewed by: rbb, stoddard

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

24 years ago I guess I can commit this, mod_dav and mod_dav_fs aren't depended upon
William A. Rowe Jr [Wed, 11 Oct 2000 08:00:40 +0000 (08:00 +0000)]
  I guess I can commit this, mod_dav and mod_dav_fs aren't depended upon
  by InstallBin just yet.

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

24 years ago These don't do anything until the patch on the table is resolved, but
William A. Rowe Jr [Wed, 11 Oct 2000 07:57:31 +0000 (07:57 +0000)]
  These don't do anything until the patch on the table is resolved, but
  it's progress and out of my tree.

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

24 years ago This much, at least, we don't need to debate.
William A. Rowe Jr [Wed, 11 Oct 2000 07:52:09 +0000 (07:52 +0000)]
  This much, at least, we don't need to debate.

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

24 years ago Missing some DAV required symbols.
William A. Rowe Jr [Wed, 11 Oct 2000 07:47:06 +0000 (07:47 +0000)]
  Missing some DAV required symbols.

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

24 years ago Preparing the way.
William A. Rowe Jr [Wed, 11 Oct 2000 07:45:34 +0000 (07:45 +0000)]
  Preparing the way.

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

24 years ago Yet another warning down (pps... I choose to cast rc since i is being
William A. Rowe Jr [Wed, 11 Oct 2000 07:42:44 +0000 (07:42 +0000)]
  Yet another warning down (pps... I choose to cast rc since i is being
  doubled... I expect the mismatched types were deliberate.)

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

24 years ago Away fool precompiled headers... while I'm at it, need to look at why
William A. Rowe Jr [Wed, 11 Oct 2000 04:32:34 +0000 (04:32 +0000)]
  Away fool precompiled headers... while I'm at it, need to look at why
  sdbm is sucking in far more headers than could possibly be useful.

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

24 years ago This one is odd, it's not the patch either of us are concerned with, it's
William A. Rowe Jr [Wed, 11 Oct 2000 04:26:08 +0000 (04:26 +0000)]
  This one is odd, it's not the patch either of us are concerned with, it's
  the logic that they started with.  If problems we never knew about just
  go away, don't blame us.

Submitted by: William Rowe
Reviewed by: Bill Stoddard

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

24 years ago New symbol for HAVE_URL_PATHS reminds me we need to prefix a bunch more
William A. Rowe Jr [Wed, 11 Oct 2000 04:24:41 +0000 (04:24 +0000)]
  New symbol for HAVE_URL_PATHS reminds me we need to prefix a bunch more
  symbols with AP_.

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

24 years agominor cleanups in http_filter() and ap_get_client_block()
Jeff Trawick [Tue, 10 Oct 2000 17:04:19 +0000 (17:04 +0000)]
minor cleanups in http_filter() and ap_get_client_block()

this is not the change to allow us to read broken-up header lines again :(

. http_filter()
  - respect apr_status_t as set by bucket->read() or ap_get_brigade()
  - return apr_status_t instead of length
. ap_get_client_block()
  - remove a confusing line which set the length parameter before
  - passing it to bucket->read()

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

24 years agoadd DAV_RESOURCE_TYPE_PRIVATE.
Greg Stein [Tue, 10 Oct 2000 11:42:22 +0000 (11:42 +0000)]
add DAV_RESOURCE_TYPE_PRIVATE.
some minor reformatting.

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

24 years agoecho should not be built by default
Greg Stein [Tue, 10 Oct 2000 10:16:15 +0000 (10:16 +0000)]
echo should not be built by default
(maybe this module should be moved to modules/example/)

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

24 years ago*) fix GET handling: cache the provider; test through the provider rather
Greg Stein [Tue, 10 Oct 2000 08:25:44 +0000 (08:25 +0000)]
*) fix GET handling: cache the provider; test through the provider rather
   than the handle_get config member (which is now gone)

*) use "DAV/2" for the server token rather than dup'ing the apache vsn

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

24 years agouse the APR type
Greg Stein [Tue, 10 Oct 2000 06:13:23 +0000 (06:13 +0000)]
use the APR type

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

24 years ago This will have been a good thing if we get that far.
William A. Rowe Jr [Tue, 10 Oct 2000 04:23:12 +0000 (04:23 +0000)]
  This will have been a good thing if we get that far.

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

24 years agoWrite all of the request body to the child, not just what the kernel
Jeff Trawick [Tue, 10 Oct 2000 04:11:35 +0000 (04:11 +0000)]
Write all of the request body to the child, not just what the kernel
would accept on the first write.

Because the pipe is non-blocking (via setting an APR timeout), we
have to send in a loop.

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

24 years agoBack out the change to move the core_output_filters brigade to the
Ryan Bloom [Tue, 10 Oct 2000 03:35:11 +0000 (03:35 +0000)]
Back out the change to move the core_output_filters brigade to the
conn_rec.  Since all requests on a given connection use the same
core_output_filter, the ctx in that filter has the correct lifetime

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

24 years agorename core_register_filter() to core_insert_filter()
Jeff Trawick [Tue, 10 Oct 2000 02:14:11 +0000 (02:14 +0000)]
rename core_register_filter() to core_insert_filter()

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

24 years agocore_input_filter():
Jeff Trawick [Tue, 10 Oct 2000 02:10:42 +0000 (02:10 +0000)]
core_input_filter():
  remove old code which looked for LF
  return apr_status_t value instead of length

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

24 years agoWe need to flush all logs when the child exits. To do this, we just
Ryan Bloom [Mon, 9 Oct 2000 23:35:12 +0000 (23:35 +0000)]
We need to flush all logs when the child exits.  To do this, we just
create a child_init hook, and use it to register a cleanup for child
exit.
PR: 6550

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

24 years agoRemove an annoying warning.
Ryan Bloom [Mon, 9 Oct 2000 23:11:21 +0000 (23:11 +0000)]
Remove an annoying warning.

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

24 years agoRemove some deprecated functions
Ryan Bloom [Mon, 9 Oct 2000 22:57:51 +0000 (22:57 +0000)]
Remove some deprecated functions

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

24 years ago Fix another bug in the send_the_file() read/write loop. A partial
Bill Stoddard [Mon, 9 Oct 2000 22:08:49 +0000 (22:08 +0000)]
 Fix another bug in the send_the_file() read/write loop. A partial
 send by apr_send would cause unsent data in the read buffer to
 get clobbered. Complete making send_the_file handle partial
 writes to the network.

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

24 years agoFix some types in the latest tree, so that AIX builds cleanly again.
Ryan Bloom [Mon, 9 Oct 2000 19:03:27 +0000 (19:03 +0000)]
Fix some types in the latest tree, so that AIX builds cleanly again.
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@86484 13f79535-47bb-0310-9956-ffa450edef68

24 years agoInitialize nbytes across each iteration and not just after a call to writev_it_all.
Bill Stoddard [Mon, 9 Oct 2000 18:02:45 +0000 (18:02 +0000)]
Initialize nbytes across each iteration and not just after a call to writev_it_all.

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

24 years agoRemove stray semicolon from AP_NOBODY_READ and AP_NOBODY_WROTE decls.
Jeff Trawick [Mon, 9 Oct 2000 17:39:10 +0000 (17:39 +0000)]
Remove stray semicolon from AP_NOBODY_READ and AP_NOBODY_WROTE decls.
Remove some out-of-date ap_pass_brigade() doc.
Tweak the ap_get_brigade() doc a little.

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

24 years agoFix bug which would cause offset to be ignored in send_the_file() if there were
Bill Stoddard [Mon, 9 Oct 2000 16:35:20 +0000 (16:35 +0000)]
Fix bug which would cause offset to be ignored in send_the_file() if there were
no headers to send.

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

24 years agoHandle receiving APR_ENOTIMPL from apr_sendfile. This is mainly to accomodate
Bill Stoddard [Mon, 9 Oct 2000 16:33:24 +0000 (16:33 +0000)]
Handle receiving APR_ENOTIMPL from apr_sendfile. This is mainly to accomodate
Windows 95/98 with binaries compiled on Windows NT.  The solution is not specific
toWindows though.  Catch up on some CHANGES logging.

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

24 years agoUpdate some docs httpd.h
Ryan Bloom [Mon, 9 Oct 2000 14:15:32 +0000 (14:15 +0000)]
Update some docs httpd.h

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

24 years ago Gee, that .zip file of 2.0a7 looks out of sorts
William A. Rowe Jr [Mon, 9 Oct 2000 03:44:39 +0000 (03:44 +0000)]
  Gee, that .zip file of 2.0a7 looks out of sorts

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

24 years agoPort the fix for Remove Handler from 1.3 to 2.0
Ryan Bloom [Mon, 9 Oct 2000 03:05:38 +0000 (03:05 +0000)]
Port the fix for Remove Handler from 1.3 to 2.0
Submitted by: Sander van Zoest <sander@covalent.net>
Reviewed by: Ryan Bloom

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