]> granicus.if.org Git - apache/log
apache
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

24 years agoUpdate the version for 2.0a8-dev
Ryan Bloom [Mon, 9 Oct 2000 00:34:41 +0000 (00:34 +0000)]
Update the version for 2.0a8-dev

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

24 years agoUpdate the Announcement for the 7th alpha.
Ryan Bloom [Mon, 9 Oct 2000 00:16:51 +0000 (00:16 +0000)]
Update the Announcement for the 7th alpha.

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

24 years ago Ok, if I remember right, somewhere along the way we decided not to
William A. Rowe Jr [Sun, 8 Oct 2000 23:59:45 +0000 (23:59 +0000)]
  Ok, if I remember right, somewhere along the way we decided not to
  generate a pcre.h header from pcre.in, but Win32 (at this instant)
  still generates pcre.h from the pcre.hw source.  For this moment
  (T-0001 to tag and roll) this is the reasonable fix.

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

24 years ago My Bad. Local environment had leaked into the tree.
William A. Rowe Jr [Sun, 8 Oct 2000 23:52:56 +0000 (23:52 +0000)]
  My Bad.  Local environment had leaked into the tree.

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

24 years ago Just cleaning house and assuring there is nothing untword in the alpha.
William A. Rowe Jr [Sun, 8 Oct 2000 23:52:06 +0000 (23:52 +0000)]
  Just cleaning house and assuring there is nothing untword in the alpha.

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

24 years agoNo need for the if statement here.
Ryan Bloom [Sun, 8 Oct 2000 23:22:35 +0000 (23:22 +0000)]
No need for the if statement here.

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

24 years agoFix the char-at-a-time problem. To fix this, we just buffer up a line
Ryan Bloom [Sun, 8 Oct 2000 19:03:18 +0000 (19:03 +0000)]
Fix the char-at-a-time problem.  To fix this, we just buffer up a line
until we have found a LF, then we send the data up to the previous filter.
I have test on Linux with both Linux's telnet and Win 98 telnet.  Win98
uses a char-at-a-time, so this should solve the problem.

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

24 years agoClean up the test for \0 in getline.
Ryan Bloom [Sun, 8 Oct 2000 16:06:57 +0000 (16:06 +0000)]
Clean up the test for \0 in getline.
Submitted by: Will Wrowe

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

24 years ago Really out of date, but here's something worth adding.
William A. Rowe Jr [Sun, 8 Oct 2000 06:11:47 +0000 (06:11 +0000)]
  Really out of date, but here's something worth adding.

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

24 years ago That's all I wrote... except for the mpm_winnt.c canonical error patch,
William A. Rowe Jr [Sun, 8 Oct 2000 06:08:58 +0000 (06:08 +0000)]
  That's all I wrote... except for the mpm_winnt.c canonical error patch,
  my development tree is up-to-date.

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

24 years ago Missed it, a rather messy canonical error example.
William A. Rowe Jr [Sun, 8 Oct 2000 06:05:22 +0000 (06:05 +0000)]
  Missed it, a rather messy canonical error example.

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

24 years ago Missed it... another canonical error fix
William A. Rowe Jr [Sun, 8 Oct 2000 06:05:00 +0000 (06:05 +0000)]
  Missed it... another canonical error fix

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

24 years ago Kind of hard to load without an exported module structure.
William A. Rowe Jr [Sun, 8 Oct 2000 06:01:39 +0000 (06:01 +0000)]
  Kind of hard to load without an exported module structure.

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

24 years ago Movin on over from 1.3.13-dev : this patch fixes the problem of nasty
William A. Rowe Jr [Sun, 8 Oct 2000 06:00:26 +0000 (06:00 +0000)]
  Movin on over from 1.3.13-dev : this patch fixes the problem of nasty
  popup windows alerting an Admin that the isapi isn't working, and
  simplifies mod_isapi by relying on dso.

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

24 years agoMake mod_log_config compile cleanly when using BUFFERED_LOGS
Ryan Bloom [Sun, 8 Oct 2000 04:37:04 +0000 (04:37 +0000)]
Make mod_log_config compile cleanly when using BUFFERED_LOGS
PR: 6519
Submitted by: Mike Abbott <mja@sgi.com>
Reviewed by: Ryan Bloom

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

24 years agoFix handling of LF only terminated header lines by not assuming the LF
Brian Havard [Sun, 8 Oct 2000 04:25:11 +0000 (04:25 +0000)]
Fix handling of LF only terminated header lines by not assuming the LF
character will be followed by a 0.

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

24 years agoAdd back the ap_disable_nagle call in make_sock. However, this is a
Ryan Bloom [Sun, 8 Oct 2000 04:02:11 +0000 (04:02 +0000)]
Add back the ap_disable_nagle call in make_sock.  However, this is a
performance enhancement only on platforms where turning off nagle is
inherited by accepted sockets.  Because this is not always true, in order
to have the disable_nagle call active, the macro DISABLE_NAGLE_INHERITED
must be defined.
PR: 6531

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

24 years agoRemove all compiler warnings from the proxy code. There are no garauntees
Ryan Bloom [Sun, 8 Oct 2000 03:23:05 +0000 (03:23 +0000)]
Remove all compiler warnings from the proxy code.  There are no garauntees
that this still works, but most of the changes were just const-safeness
changes.
PR: 6631

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

24 years agoRemove ap_send_fb and ap_send_fb_length. These functions don't make much
Ryan Bloom [Sun, 8 Oct 2000 00:55:46 +0000 (00:55 +0000)]
Remove ap_send_fb and ap_send_fb_length.  These functions don't make much
sense anymore, because the BUFFs that Apache used to use it for have all
been replaced with buckets.  BUFFs can't be used with filters, and Apache
doesn't use these functions anywhere anymore, so they need to go away now.

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

24 years agoUpdate send_the_file to fall back to a read/write loop on platforms
Ryan Bloom [Sat, 7 Oct 2000 21:54:16 +0000 (21:54 +0000)]
Update send_the_file to fall back to a read/write loop on platforms
without sendfile.  This also makes the apr_hdtr_t type available on
all platforms, regardless of whether apr_sendfile is defined or not.
Submitted by: Brian Havard and Ryan Bloom

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

24 years agoUse autoconf to substitute the proper values into apachectl, and install
Ryan Bloom [Sat, 7 Oct 2000 19:54:23 +0000 (19:54 +0000)]
Use autoconf to substitute the proper values into apachectl, and install
it when we install everything else.

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

24 years agosysconfdir should use { and } instead of ( and ), because it is used in
Ryan Bloom [Sat, 7 Oct 2000 18:16:41 +0000 (18:16 +0000)]
sysconfdir should use { and } instead of ( and ), because it is used in
apxs
Submitted by: Simon Geard <delgarde@ihug.co.nz>
Reviewed by: Ryan Bloom

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

24 years agoThe core filter should not be using its own brigade inside its own ctx
Ryan Bloom [Sat, 7 Oct 2000 18:10:02 +0000 (18:10 +0000)]
The core filter should not be using its own brigade inside its own ctx
structure.  This changes the core_output_filter to use a brigade inside
the conn_rec.  Think of this as analagous to the BUFF in the conn_rec.
The idea is that if we have pipelined requests, and it isn't worth it to
send the last bit of data from the first request, we want to save that
extra bit of data to the conn_rec, so that the next request sends it
automatically.

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

24 years ago Addresses the huge issue that Crypt::PasswdMD5 is probably not, and
William A. Rowe Jr [Sat, 7 Oct 2000 18:08:02 +0000 (18:08 +0000)]
  Addresses the huge issue that Crypt::PasswdMD5 is probably not, and
  Digest::SHA1 is possibly not already installed, but the user may not
  even need it for their files!  Also inform the user what to grab and
  where.  Finally, assures that the old Crypt::PasswdMD5 (that didn't
  export apache_md5_crypt()) will work nonetheless.

  There is still one -big- problem ... the list of xDBM_Files options
  won't necessarily correspond to how Apache was built, nor if they
  are using mod_auth_db vs. mod_auth_dbm.  This has -got- to be fixed
  (although it's an old problem.)

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

24 years agoThe newest incarnation of http_filter. This is far from perfect, but it
Ryan Bloom [Sat, 7 Oct 2000 05:41:59 +0000 (05:41 +0000)]
The newest incarnation of http_filter.  This is far from perfect, but it
is a step in the right direction.  The idea is that the http_filter knows
about the http protocol.  So, it uses that knowledge to discover HTTP
request headers, and sends those headers up to getline.  However, it keeps
the request body saved in it's ctx pointer.

Later, when ap_get_client_block is called, we have set the remaining field
in the conn_rec.  This tells the http_filter how much of the remaining
data is request body, and how much isn't.  So, the http_filter can return
the request body unparsed up throught ap_get_client_block.

This doesn't even try to work with chunked input data, and there are still
some other bugs in it, but it works for small-ish files in my tests, and
it lets other people play with the concept of input filters.  I will try
to play with this more, but others should feel free to hack around in it
too.

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

24 years agoclean up the provider stuff some more: don't allow pick-and-choose of
Greg Stein [Sat, 7 Oct 2000 01:29:39 +0000 (01:29 +0000)]
clean up the provider stuff some more: don't allow pick-and-choose of
pieces, but just a complete provider. they aren't really separable anyways.

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

24 years agoforward-port John Vasta's checkin to mod_dav 1.1.x (on Sep 25, 2000). this
Greg Stein [Sat, 7 Oct 2000 00:50:42 +0000 (00:50 +0000)]
forward-port John Vasta's checkin to mod_dav 1.1.x (on Sep 25, 2000). this
begins some work to upgrade the versioning support to some of the more
recent drafts.

- get_resource hook has new params
- create_collection hook no longer takes a pool
- new dav_auto_version_info structure to group up autoversion
  rollback/commit handling data
- new functions for getting workspace, target-selector, etc
- supportedlock hook now takes the resource in question (since different
  resources may have different locks)
- new resource types; tweaks in props.c to support them
- some tweaks with resource creation, Location header, etc.

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

24 years agoThis is ugly, but at least we compile again on platforms that lack
Jim Jagielski [Sat, 7 Oct 2000 00:37:18 +0000 (00:37 +0000)]
This is ugly, but at least we compile again on platforms that lack
sendfile().
PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago Roll forward fixes identified for 1.3.13-dev.
William A. Rowe Jr [Fri, 6 Oct 2000 22:33:44 +0000 (22:33 +0000)]
  Roll forward fixes identified for 1.3.13-dev.

  Note... this module still needs more control over async emulation, etc.

Submitted by: Jesse Pelton [jsp@PKC.com]

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

24 years ago A 'little' reminder about a 'little' problem.
William A. Rowe Jr [Fri, 6 Oct 2000 21:13:12 +0000 (21:13 +0000)]
  A 'little' reminder about a 'little' problem.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agorecent changes bungled the state of the EEXIST test.
Greg Stein [Fri, 6 Oct 2000 19:45:52 +0000 (19:45 +0000)]
recent changes bungled the state of the EEXIST test.

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

24 years ago Back out or finish up a few non-apr tests. Won't touch proxy at this
William A. Rowe Jr [Fri, 6 Oct 2000 18:28:27 +0000 (18:28 +0000)]
  Back out or finish up a few non-apr tests.  Won't touch proxy at this
  moment with a 10 foot pole.  fs_dav is ok... the others need apr'ization

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

24 years ago Completed review for new tests:
William A. Rowe Jr [Fri, 6 Oct 2000 17:52:46 +0000 (17:52 +0000)]
  Completed review for new tests:
    APR_STATUS_IS_EACCES(s)
    APR_STATUS_IS_EEXIST(s)
    APR_STATUS_IS_ENAMETOOLONG(s)
    APR_STATUS_IS_ENOENT(s)

  Where the old EACCES et. al. still exist, we have a problem (not yet
  using APR at all)

  More to come...

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

24 years ago Here it is, the Win32 part of the big canonical errors patch.
William A. Rowe Jr [Fri, 6 Oct 2000 17:24:43 +0000 (17:24 +0000)]
  Here it is, the Win32 part of the big canonical errors patch.

  The reason is really, really simple.  If we ever choose to mix clib and
  dos error codes, they criss-cross and don't line up, but they share the
  same number space.  As I wrote the new APR_IS_ERROR macros, I realized
  we were about to shoot ourselves in the foot.

  These changes nearly entirely affect Win32 only.  The next big patch will
  affect all of the rv == APR_ENOENT type problems throughout the system.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoFix a potential memory overrun error in ap_get_client_block. The problem
Ryan Bloom [Fri, 6 Oct 2000 16:41:30 +0000 (16:41 +0000)]
Fix a potential memory overrun error in ap_get_client_block.  The problem
is that the bucket code does not respect the length passed into it.  This
is correct for buckets, but it means that when we get data out of the
buckets, we may have to split the bucket to make sure that any copy
operations are safe.  We were originally doing the split at the number of
characters read from the bucket, but we really want to do it at the length
of the buffer.

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

24 years agomore uuid tidbits
Greg Stein [Fri, 6 Oct 2000 14:28:00 +0000 (14:28 +0000)]
more uuid tidbits

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

24 years ago*) convert fs/lock.c to use APR UUIDs for the opaque locktokens.
Greg Stein [Fri, 6 Oct 2000 12:49:21 +0000 (12:49 +0000)]
*) convert fs/lock.c to use APR UUIDs for the opaque locktokens.
*) blow away opaquelock.c and dav_opaquelock.h since direct use of APR UUIDs
   is quite easy.
*) toss the uuid_state from the per-server config in mod_dav.c

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

24 years agoAdd the first draft of the http_filter. In time this filter will split
Ryan Bloom [Fri, 6 Oct 2000 06:07:07 +0000 (06:07 +0000)]
Add the first draft of the http_filter.  In time this filter will split
the bucket brigade between the headers and the body.  Right now it just
converts \r\n to \n\0.

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

24 years agoBe a little more explicit about the consequences of
Joshua Slive [Fri, 6 Oct 2000 00:56:48 +0000 (00:56 +0000)]
Be a little more explicit about the consequences of
ErrorDocument xxx http://....

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

24 years agoModify ap_get_client_block to use the bucket brigades instead of BUFF.
Ryan Bloom [Thu, 5 Oct 2000 22:40:28 +0000 (22:40 +0000)]
Modify ap_get_client_block to use the bucket brigades instead of BUFF.
I'm pretty sure this isn't complete, but it has worked in my tests with
a very simple CGI.

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

24 years agoPort over the config directory stuff...
Jim Jagielski [Thu, 5 Oct 2000 22:35:08 +0000 (22:35 +0000)]
Port over the config directory stuff...

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

24 years agoBack out some more of build changes from last night so that Apache
Jeff Trawick [Thu, 5 Oct 2000 21:48:38 +0000 (21:48 +0000)]
Back out some more of build changes from last night so that Apache
builds on FreeBSD 3.4 again.

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

24 years agoInstall APXS if it is built.
Ryan Bloom [Thu, 5 Oct 2000 18:21:34 +0000 (18:21 +0000)]
Install APXS if it is built.

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

24 years ago The lots of little ones... APR_IS_STATUS_condition(rv) conditional macros
William A. Rowe Jr [Thu, 5 Oct 2000 17:33:14 +0000 (17:33 +0000)]
  The lots of little ones... APR_IS_STATUS_condition(rv) conditional macros
  replacing the majority of fallible rv == APR_condition tests.  But there
  are lots more to fix, these are the obvious ones that already did proper
  canonical error conversion.

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

24 years agoBack out the build changes I added last night. This was causing libtool
Ryan Bloom [Thu, 5 Oct 2000 17:28:45 +0000 (17:28 +0000)]
Back out the build changes I added last night.  This was causing libtool
commands to be sent to gcc.  It worked on some platforms, but not all of
them.

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

24 years agoAdd a bit of infrastructure which will be needed for input filtering:
Jeff Trawick [Thu, 5 Oct 2000 16:55:10 +0000 (16:55 +0000)]
Add a bit of infrastructure which will be needed for input filtering:

1) separate filter lists hanging off the r and the c

   requests start off with the same filter list as the connection

   the input filter list is not initialized for subrequests

   internal redirects start off with the same filter list as the
   connection

2) AddInputFilter directive (blatant rip-off of Ryan's AddOutputFilter
   directive); as with AddOutputFilter, the network is implicitly to the
   right of the specified filter list; this may not be the most
   intuitive way to specify the filters; not sure yet

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

24 years agoDisable the buffer_filter because it may be masking bugs in the bucket brigade
Bill Stoddard [Thu, 5 Oct 2000 14:00:59 +0000 (14:00 +0000)]
Disable the buffer_filter because it may be masking bugs in the bucket brigade
code.

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

24 years agoNow that we have ap_add_input_filter(), rename ap_add_filter() to
Jeff Trawick [Thu, 5 Oct 2000 12:01:48 +0000 (12:01 +0000)]
Now that we have ap_add_input_filter(), rename ap_add_filter() to
ap_add_output_filter().

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

24 years agoGet rid of much of the old implementation of translating the
Jeff Trawick [Thu, 5 Oct 2000 11:21:26 +0000 (11:21 +0000)]
Get rid of much of the old implementation of translating the
charset of response bodies.

ap_checkconv() is removed, except for in os/bs2000 and os/tpf.
(Anything there is questionable for 2.0 anyway.)

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

24 years agoMultiple build and configuration fixes
Ryan Bloom [Thu, 5 Oct 2000 05:42:06 +0000 (05:42 +0000)]
Multiple build and configuration fixes

Build process:

  -add datadir and localstatedir substitutions
  -fix layout name
  -fix logfilename misspelling
  -fix evaluation of installation dir variables and
  -replace $foobar by $(foobar) to be usefull in the makefile

Cross compile:

  -add rules for cross-compiling in rules.mk. Okay, rule to check for
   $CC_FOR_BUILD is still missing
  -use CHECK_TOOL instead of CHECK_PROG for ranlib
  -add missing "AR=@AR@" to severaly Makefile.in's
  -cache result for "struct rlimit"
  -compile all helper programs with native and cross compiler
   and use the native version to generate header file

PR: 6384
Submitted by: "R�diger" Kuhlmann <Tadu@gmx.de>
Reviewed by: Ryan Bloom

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

24 years agoPrepare our autoconf setup for autoconf 2.14a and for cross-compiling
Ryan Bloom [Thu, 5 Oct 2000 04:41:47 +0000 (04:41 +0000)]
Prepare our autoconf setup for autoconf 2.14a and for cross-compiling
PR: 6379
Submitted by: "R�diger" Kuhlmann <Tadu@gmx.de>
Reviewed by: Ryan Bloom

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

24 years agoFix a bug where a client which only sends \n to delimit header
Greg Ames [Thu, 5 Oct 2000 03:55:12 +0000 (03:55 +0000)]
Fix a bug where a client which only sends \n to delimit header
lines (netcat) gets a strange looking HTTP_NOT_IMPLEMENTED message.

While I'm in there, start working on ebcdic co-existance with input
filtering.

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

24 years agoIf mod_so is compiled into the server, we need to create libexec, even
Ryan Bloom [Thu, 5 Oct 2000 03:44:22 +0000 (03:44 +0000)]
If mod_so is compiled into the server, we need to create libexec, even
if there are no shared modules compiled.  This is in keeping with what
we did with Apache 1.3, and it allows APXS to work, even if there were no
shared modules installed initially.

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

24 years agoUpdate the call to ap_add_filter() to include the new
Jeff Trawick [Thu, 5 Oct 2000 02:36:55 +0000 (02:36 +0000)]
Update the call to ap_add_filter() to include the new
conn_rec parameter.

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

24 years agoThe new request_rec set up for redirects needs to pick up the
Jeff Trawick [Thu, 5 Oct 2000 02:11:11 +0000 (02:11 +0000)]
The new request_rec set up for redirects needs to pick up the
output filter chain from the conn_rec.  Any required request
filters will be inserted later.

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

24 years agoConnection oriented filters are now stored in the conn_rec instead of the
Ryan Bloom [Wed, 4 Oct 2000 23:19:33 +0000 (23:19 +0000)]
Connection oriented filters are now stored in the conn_rec instead of the
request_rec.  This means that a conn_rec must be supplied when calling
ap_add_filter.  The reason for this change is that we need to be able to
add the core_filter (whether or SSL or not) before we try to read the
request.  This way, if a request fails, we can actually send the error
page back to the client.  With this change, we add the core filter to the
conn_rec during the pre-connection phase.
Submitted by: Ryan Bloom, Jeff Trawick, and Greg Ames

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

24 years agoIn core_output_filter(), reset nbytes to zero after calling
Jeff Trawick [Wed, 4 Oct 2000 22:09:46 +0000 (22:09 +0000)]
In core_output_filter(), reset nbytes to zero after calling
writev_it_all() in case we have another brigade to process.
Otherwise, nbytes is bogus for the second brigade and
writev_it_all() doesn't know when to quit (it loops).

In writev_it_all(), when compensating for bytes already sent
don't go beyond the number of iovs we were passed on input.

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

24 years agoUse a handler rather than a magic mime type in mod_asis.
Joshua Slive [Wed, 4 Oct 2000 21:51:14 +0000 (21:51 +0000)]
Use a handler rather than a magic mime type in mod_asis.

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

24 years agoTake another shot at reimplementing core_output_filter. This implementation buffers
Bill Stoddard [Wed, 4 Oct 2000 19:11:03 +0000 (19:11 +0000)]
Take another shot at reimplementing core_output_filter. This implementation buffers
brigades across multiple calls until MAX_IOVEC_TO_WRITE or
MIN_SIZE_TO_WRITE thresholds are hit. This implementation does not attempt
to coalesce bytes. Moving a bit further down the filter learning curve...

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

24 years agoBack out a patch that should never have been committed
Ryan Bloom [Wed, 4 Oct 2000 19:08:34 +0000 (19:08 +0000)]
Back out a patch that should never have been committed

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

24 years agoFix a small typo that was keeping us from copying os-inline.c to the
Ryan Bloom [Wed, 4 Oct 2000 19:00:36 +0000 (19:00 +0000)]
Fix a small typo that was keeping us from copying os-inline.c to the
include directory

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

24 years agoClean up md5 digest support in default_handler() a bit:
Jeff Trawick [Wed, 4 Oct 2000 17:14:00 +0000 (17:14 +0000)]
Clean up md5 digest support in default_handler() a bit:
1) don't compute md5 if we have a content filter; it is almost always wrong
2) add note about adding md5 filter in the future; this can be done
3) delete some APACHE_XLATE/CHARSET_EBCDIC baggage associated with md5
   digest support; part of this deleted baggage is a segfault on
   subrequests referencing r->rrx (which is not allocated for subrequests)

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

24 years agoFix spelling mistake.
Bill Stoddard [Wed, 4 Oct 2000 13:44:28 +0000 (13:44 +0000)]
Fix spelling mistake.

Submitted by: Chris Pepper
PR: 6623

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

24 years ago Hey... didn't know these were hanging around. Time to file and forget.
William A. Rowe Jr [Wed, 4 Oct 2000 05:53:28 +0000 (05:53 +0000)]
  Hey... didn't know these were hanging around.  Time to file and forget.

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

24 years agoChange ap_send_fd() so that it returns a proper apr_status_t value
Jeff Trawick [Tue, 3 Oct 2000 22:08:38 +0000 (22:08 +0000)]
Change ap_send_fd() so that it returns a proper apr_status_t value
instead of the number of bytes sent.

default_handler() ignores the ap_send_fd() return code, but
mod_file_cache doesn't.  When mod_file_cache's handler called
ap_send_fd(), the client would get the desired file plus an
error document (500 internal server error), which was delivered
because mod_file_cache's handler returned an error since
ap_send_fd() returned non-zero.

Also in this commit is a hack to be able to compile when APACHE_XLATE
is defined.

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

24 years agoChange core_input_filter() so that it returns an empty brigade upon
Jeff Trawick [Tue, 3 Oct 2000 21:56:43 +0000 (21:56 +0000)]
Change core_input_filter() so that it returns an empty brigade upon
FIN/EOF or error.  This meshes with what getline() looks for.  It isn't
perfect, but it avoids some nasty loops consuming all available storage
on http/1.1 connections.  In keepalive state, we call getline to read the
next request...  getline() calls core_input_filter() (indirectly)...
core_input_filter() calls apr_recv() which returns APR_SUCCESS/0 bytes
to signal FIN/EOF.  But core_input_filter() returned a bucket with length
zero to getline(), so getline() called core_input_filter() again.

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

24 years agoFix some bad calls to ap_log_error(); some of these neglected to
Jeff Trawick [Tue, 3 Oct 2000 21:48:31 +0000 (21:48 +0000)]
Fix some bad calls to ap_log_error(); some of these neglected to
turn on APLOG_NOERRNO even though no syscall failure was being
reported; others passed errno instead of the APR retcode.

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

24 years agoThe previous commit pointed out an unfortunate problem with the
Jeff Trawick [Tue, 3 Oct 2000 15:05:26 +0000 (15:05 +0000)]
The previous commit pointed out an unfortunate problem with the
ap_os_case_canonical_filename() interface: It returns const char * on
platforms where no mapping is ever performed but char * on platforms
where mapping can occur.  Such a discrepancy seems to be a good choice,
as no platform is penalized with extra pathlength.

This tweak gets rid of a const misuse warning on systems where
ap_os_case_canonical_filename() returns const char *.

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

24 years ago Definately need a canonical name, so comparison succeeds at run time.
William A. Rowe Jr [Tue, 3 Oct 2000 13:11:25 +0000 (13:11 +0000)]
  Definately need a canonical name, so comparison succeeds at run time.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago Fix a few colliding modules
William A. Rowe Jr [Tue, 3 Oct 2000 06:55:06 +0000 (06:55 +0000)]
  Fix a few colliding modules

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

24 years ago Ok... I've been waiting to find out what happens when we commit to two
William A. Rowe Jr [Tue, 3 Oct 2000 06:08:36 +0000 (06:08 +0000)]
  Ok... I've been waiting to find out what happens when we commit to two
  trees at once.  To that end, this is the caching and rather stable 2.0
  mod_isapi, with the docs brought over from 1.3 and freshened a bit.

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

24 years agoReplace ap_get_data_from_filter and ap_save_data_to_filter with
Ryan Bloom [Tue, 3 Oct 2000 00:44:00 +0000 (00:44 +0000)]
Replace ap_get_data_from_filter and ap_save_data_to_filter with
ap_save_brigade.  This function does not try to save the actual brigade to
a specific location.  If just traverses the brigade, calls setaside if
it is available and concatenates it with a previously setaside brigade.

The resulting brigade is returned to the caller for them to save it to
the appropriate location.

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

24 years ago Whoops... that there was a handle I left hanging (and growing).
William A. Rowe Jr [Mon, 2 Oct 2000 22:52:20 +0000 (22:52 +0000)]
  Whoops... that there was a handle I left hanging (and growing).

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

24 years ago Downgrade warnings, stop changing errors from something meaningless to
William A. Rowe Jr [Mon, 2 Oct 2000 22:34:07 +0000 (22:34 +0000)]
  Downgrade warnings, stop changing errors from something meaningless to
  something unrelated, and solve a bug in arg passing.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago Choices. Choose -X, -DONE_PROCESS or set ONE_PROCESS=token for the
William A. Rowe Jr [Mon, 2 Oct 2000 22:32:57 +0000 (22:32 +0000)]
  Choices.  Choose -X, -DONE_PROCESS or set ONE_PROCESS=token for the
  diagnostic behavior.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago _not_ up to 100%, but some structural changes to make the rest easier.
William A. Rowe Jr [Mon, 2 Oct 2000 22:29:18 +0000 (22:29 +0000)]
  _not_ up to 100%, but some structural changes to make the rest easier.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoFix two problems. First we are setting aside the wrong bucket brigade. Second, we...
Bill Stoddard [Mon, 2 Oct 2000 22:00:59 +0000 (22:00 +0000)]
Fix two problems. First we are setting aside the wrong bucket brigade. Second, we need to
check that a setaside routine is defined for the bucket before attempting to call it.  Not sure
at all if we even want to keep this routine as it does not allow using filter->ctx for other
purposes.

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

24 years agoMove where the CORE_IN filter is added to the server. We used to do this
Ryan Bloom [Mon, 2 Oct 2000 19:52:37 +0000 (19:52 +0000)]
Move where the CORE_IN filter is added to the server.  We used to do this
in ap_new_connection, but that is bogus, because then other modules can't
put their own filter in.  Now, we do this in a new pre-connection hook
function.  Later, we will want to add some checking to make sure that this
is really an HTTP request that we are adding the filter for.

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