Ryan Bloom [Wed, 7 Mar 2001 17:01:28 +0000 (17:01 +0000)]
Fix content-length computation. We ONLY compute a content-length if
We are not in a 1.1 request and we cannot chunk, and this is a keepalive
or we already have all the data.
Jeff Trawick [Tue, 6 Mar 2001 21:46:12 +0000 (21:46 +0000)]
Report unbounded containers in the config file. Previously, a typo
in the </container> directive could result in the rest of the config
file being silently ignored, with undesired defaults used.
Jeff Trawick [Mon, 5 Mar 2001 20:15:15 +0000 (20:15 +0000)]
Rely on APR to determine whether or not we have netinet/tcp.h. This test
requires a special work-around for IRIX 6.5, which will be in APR soon.
There is no need for it in Apache.
The include of netinet/tcp.h was removed from perchild.c and threaded.c.
They no longer seem to be needed there.
Ryan Bloom [Mon, 5 Mar 2001 06:16:28 +0000 (06:16 +0000)]
Make the old_write filter use the ap_f* functions for buffering the data.
This has been tested with a couple of directory listings, but it could
probably use a bit more testing before being declared stable.
Ryan Bloom [Mon, 5 Mar 2001 04:43:56 +0000 (04:43 +0000)]
Another chunk of code from http to core. This should continue to build
on all platforms. The next job is to shuffle functions back and forth
so that the server builds without mod_http.
Ryan Bloom [Sun, 4 Mar 2001 17:44:07 +0000 (17:44 +0000)]
The ap_r* vote is now over. The decision was decidedly for the OLD_WRITE
filter. This adds a note in the STATUS file to ensure that it gets
modified to use the correct functions before we release.
For completeness, the vote was:
macros: rbb wrowe
old_write: gstein stoddard coar ben jwoolley
Ryan Bloom [Sun, 4 Mar 2001 06:27:27 +0000 (06:27 +0000)]
Move more code from the http module into the core server. This
is core code, basically the default handler, the default input
and output filters, and all of the core configuration directives.
All of this code is required in order for the server to work, with or
without HTTP. The server is closer to working without the HTTP
module, although there is still more to do.
I tried to fix Windows, but somebody should probably make sure I did
it correctly.
Jeff Trawick [Sat, 3 Mar 2001 01:46:16 +0000 (01:46 +0000)]
Fix some APR-ization issues:
1) we're using an apr_time_t file mtime, but trying to fit it in
a time_t entry in the cache and in parameters to the cache
access routines; use apr_time_t everywhere
2) we need to use apr_fileperms_t instead of mode_t for APR
file permissions
Ryan Bloom [Fri, 2 Mar 2001 22:46:33 +0000 (22:46 +0000)]
Allow modules to query the MPM about it's execution profile. This
query API can and should be extended in the future, but for now,
max_daemons, and threading or forking is a very good start.
Non-Unix MPM's do have the MPM query function, although there is no
garauntee that the information is perfect, please check.
Jeff Trawick [Fri, 2 Mar 2001 19:46:08 +0000 (19:46 +0000)]
in rfc1413_query():
use the buflen variable even on ASCII machines to get rid of a
warning from the SGI compiler as well as to make it go a wee
bit faster
Ryan Bloom [Fri, 2 Mar 2001 06:58:00 +0000 (06:58 +0000)]
Modify mod_include to send blocks of data no larger than 9k.
Without this, mod_include will wait until the whole file is parsed,
or the first tag is found to send any data to the client.
Submitted by: Paul J. Reder <rederpj@raleigh.ibm.com>
Greg Stein [Thu, 1 Mar 2001 00:55:03 +0000 (00:55 +0000)]
Don't directly include ap_config_auto.h directly. It isn't available on
Windows platforms. Including ap_config.h will pick it up, or it will grab
the appropriate Windows header/defines.
Jeff Trawick [Wed, 28 Feb 2001 18:41:44 +0000 (18:41 +0000)]
Fix a problem displaying status when a threaded MPM is used.
The line
int indx = (i * HARD_THREAD_LIMIT) + j;
in the vicinity of the change was bad; k needed to be added
instead of j.
I swapped the use of j and k in this section so that i and j
had the same meaning as in an earlier nested loop. I suspect
that the difference in meaning is what led to the bug.
Cliff Woolley [Wed, 28 Feb 2001 04:48:44 +0000 (04:48 +0000)]
Remove references to apr_bucket_init_types() and
apr_bucket_insert_type(). I imagine that core_pre_config() could
go away completely, but I'll leave that to someone who knows
more about hooks than I do.
Chris Pepper [Wed, 28 Feb 2001 04:41:24 +0000 (04:41 +0000)]
Adjusted links for files being moved into platform/ (were ./, now ../).
Matched up <p></p> & <pre></pre>.
Fixed misspellings.
Fixed links to ../install-tpf.html & ebcdic.html (which should probably be
moved down into platform/).
Changed links to windows.html#test to windows.html@cmdline.
Entities encoded.
Changed bogus <emp> tags to <em>.
Chris Pepper [Wed, 28 Feb 2001 03:40:40 +0000 (03:40 +0000)]
More entity quoting.
<p></p> & <a></a> cleanup.
Removed link to mod_cookies.html (missing in 2.0).
Fixed <a name="#.
Fixed link to fragment removed from mod_proxy.html.
Chris Pepper [Wed, 28 Feb 2001 03:36:00 +0000 (03:36 +0000)]
Some cleanup on the 2.0 FAQ carried over from 1.3. May be irrelevant soon,
or it may give us a better starting point for 2.0 improvements.
Fixed a bunch of <p>...</p> matches.
Removed 1.3 upgrade recommendation.
Fixed some entity encodings.
Updated a bunch of links that moved from core.html to mpm_common.html.
Fixed a few bad/stale links.
Fixed a decrement that was interfering with comment.
Ryan Bloom [Mon, 26 Feb 2001 06:26:24 +0000 (06:26 +0000)]
Add config directives to override the DEFAULT_ERROR_MSG and
DEFAULT_TIME_FORMAT.
PR: 6193
Submitted by: Dan Rench <drench@xnet.com>
Reviewed by: Ryan Bloom
All but proxy_module can be loaded and shut down without gp faulting :-)
Can't decide what to do with the proxy_module section... so I'm leaving
it alone for now. mod_info and mod_status both work, although the access
control appears broken.
A patch to clean up much bogusity in Win32. Eliminates absolute cd "/..."
references using build/fixwin32mak.pl, and the latest #if APR_HAVE_FOO_H
fixes apparently worked, now that they no longer appear as dependencies
[which had broken the build entirely.]
Ok ... .mak files are nasty. Here's a bit to clean up -some- of that
nastyness - the absolute paths that .dsp dependencies off of parent
directories are encoded with. This chops cd "\checkout\httpd-2.0" from
the support directory down to cd "..", a much nicer solution.
Bring in the expat.lib into the static aprutil.lib win32 library.
Fix up the build order that messed up command-line builds due to
the recent dependency of apr-util on expat-lite.
Ryan Bloom [Sun, 25 Feb 2001 16:57:08 +0000 (16:57 +0000)]
Don't assume that the byterange filter will always be called more than
once. It is perfectly legal to call the byterange filter one time,
with all the data. Without this patch, that case will seg fault.
Submitted by: Ryan Morgan <rmogran@covalent.net>
Greg Stein [Sat, 24 Feb 2001 14:17:25 +0000 (14:17 +0000)]
Shift XML handling code from Apache down into APRUTIL
- teach APRUTIL how to find Expat and respond to --with-expat
- Apache's configure points APRUTIL's configure at its srclib/expat-lite
(this will go away; aprutil can work against installed expats or fallback
to an expat bundled within aprutil)
- shift some of the timing of INCLUDES and top_builddir processing in the
APRUTIL configure.in script
- expose the new apr_xml functions in apr_xml.h, apr_xml.c (by building it),
and apu_compat.h
- rewrite util_xml.[ch] in terms of apr_xml
Greg Stein [Sat, 24 Feb 2001 11:23:31 +0000 (11:23 +0000)]
*) fix inline handling. we had: apr_inline, APR_INLINE, USE_GNU_INLINE, and
INLINE. Now, we just have APR_INLINE and APR_HAS_INLINE.
- convert all usage
- note that apr_general messed up the defn (compared to apr.h)
- simplify the inline decision logic in os/*/os.h
- simplify the code in os/*/os-inline.c