Cliff Woolley
3e2ce19baf
BUCKET FREELISTS
...
Add an allocator-passing mechanism throughout the bucket brigades API.
From Apache's standpoint, the apr_bucket_alloc_t* used throughout a given
connection is stored in the conn_rec by the create_connection hook. That
means it's the MPM's job to optimize recycling of apr_bucket_alloc_t's --
the MPM must ensure that no two threads can ever use the same one at the
same time, for instance.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94304 13f79535-47bb-0310-9956-ffa450edef68
2002-03-29 08:17:26 +00:00
Roy T. Fielding
845cbfd508
Update our copyright for this year.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
2002-03-13 20:48:07 +00:00
Bill Stoddard
5e0e6c4336
Change the return type on read_headers, write_headers, read_body and write_body.
...
Sanitize some of the return codes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93777 13f79535-47bb-0310-9956-ffa450edef68
2002-03-07 22:13:15 +00:00
Bill Stoddard
99021ad889
Add some messages. Be a bit smarter about detecting if a write has started
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93505 13f79535-47bb-0310-9956-ffa450edef68
2002-02-19 23:20:13 +00:00
Bill Stoddard
f34f03bfac
This is a bug or two away from working... Open both the header and data
...
files in the open_entity call. Need to be a bit smarter in managing the
cache_info structure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93421 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 23:04:43 +00:00
Bill Stoddard
5744aefd95
Stuff is getting put in the cache. Still not serving out of the cache though.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93409 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 03:27:10 +00:00
Bill Stoddard
3c6da291d7
Set some meaningful defaults on dirlevels and dirlength. Getting closer...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93405 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 03:08:23 +00:00
Bill Stoddard
51139d2798
More APR'izing and general cleanup. Need to handle the temp file correctly...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93395 13f79535-47bb-0310-9956-ffa450edef68
2002-02-13 19:16:08 +00:00
Bill Stoddard
c9effcf962
APR'ize some codepaths. Implement mkdir_structure. General cleanup...
...
It's getting closer to working but still a ways off.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93394 13f79535-47bb-0310-9956-ffa450edef68
2002-02-13 18:46:13 +00:00
Bill Stoddard
42512ee7ab
Set some defaults...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93391 13f79535-47bb-0310-9956-ffa450edef68
2002-02-13 15:59:39 +00:00
Bill Stoddard
bf1ca65eff
Move mod_disk_cache specific fields out of the cache_obj and into the
...
disk_cache_object_t.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93390 13f79535-47bb-0310-9956-ffa450edef68
2002-02-13 15:25:39 +00:00
Bill Stoddard
7354d00ead
Misc cleanup to fix compile warnings and a segfault. This module is still
...
a long ways from doing anything useful, but every bit helps.
Submitted by: Joe Norton
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93246 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 02:48:34 +00:00
Bill Stoddard
147e1301f6
Coding before the first cup of coffee.... Thanks to Martin for pointing this
...
out.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93220 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 14:43:11 +00:00
Bill Stoddard
1d5e1efe53
CacheRoot takes an argument.
...
Patch submitted by: Joe Norton <norton@alum.mit.edu >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93218 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 13:06:45 +00:00
Ian Holsman
b83f884f1e
make it compile on win32
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93214 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 04:43:34 +00:00
Bill Stoddard
db91e13b5f
mod_disk_cache cleanup. Pass request_rec on the open_entity call.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93207 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 19:04:15 +00:00
Bill Stoddard
fdae4a165b
Fix a few compile errors.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93194 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 06:14:10 +00:00
Bill Stoddard
a147b916f4
First cut at mod_disk_cache, based on code from the IBM AS400 team. Still
...
need to cleanup where some bytes are stored, check-in routines this module
calls in cache_util, etc.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93193 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 06:11:40 +00:00
Jeff Trawick
d8768e7854
get mod_disk_cache to compile
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92566 13f79535-47bb-0310-9956-ffa450edef68
2001-12-21 17:17:26 +00:00
Justin Erenkrantz
4db33d47fd
Fix breakage from Brian Pane's util_filter switch to hash tables.
...
There were some places that were expecting what you put into frec
would be what frec->name would be. Not true anymore.
There are enough other places that were already doing the strcasecmp
that it makes more sense to just make it all strcasecmp across the
board rather than changing the UPPERCASE to lowercase.
(None of these with the exception of old_filter look to be in the
critical path anyway...)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90890 13f79535-47bb-0310-9956-ffa450edef68
2001-09-04 07:59:55 +00:00
William A. Rowe Jr
62feef213f
Performance death notices. Note that we shouldn't have EVER coded a
...
module with a fixed path ... the config phase should take the proxy/
path and ap_server_root_relative() it at startup.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90564 13f79535-47bb-0310-9956-ffa450edef68
2001-08-23 18:56:13 +00:00
Cliff Woolley
29212e8c6b
*) Account for the new pool parameter to apr_bucket_file_create()
...
and apr_bucket_file_make().
*) Simplify mod_file_cache's sendfile_handler by taking advantage
the new ability of file buckets to handle files opened in XTHREAD
mode. [Also inlined some of the brigade construction stuff in
mod_file_cache's handlers to save a palloc() or two.]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89438 13f79535-47bb-0310-9956-ffa450edef68
2001-06-27 20:18:09 +00:00
Jeff Trawick
8dae7255bf
Use the proper enum for the block/non-block parameter to apr_bucket_read().
...
A couple of these changed in meaning (e.g., 1->APR_BLOCK_READ).
PR: 6980
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88428 13f79535-47bb-0310-9956-ffa450edef68
2001-03-02 21:36:21 +00:00
Roy T. Fielding
381f88d56a
Update copyright to 2001
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
2001-02-16 04:26:53 +00:00
Doug MacEachern
88d3406f9a
renaming various functions for consistency sake
...
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
2001-02-08 07:45:33 +00:00
William A. Rowe Jr
59bbd68bec
The big change. This is part 3 of the apr-util symbols rename, please
...
see the first commit of srclib/apr-util/include (cvs apr-util/include)
for the quick glance at symbols changed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87731 13f79535-47bb-0310-9956-ffa450edef68
2001-01-19 07:04:36 +00:00
William A. Rowe Jr
40655f8641
Provide apr_pool_t arg to register_hooks, since anything they do in that
...
step -must- be done with a pool that will not outlive the cmd pool, from
which they may have been dynamically loaded.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87697 13f79535-47bb-0310-9956-ffa450edef68
2001-01-17 15:52:12 +00:00
Ryan Bloom
c33b25a3dd
Remove a couple more NULL handler specifications.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87662 13f79535-47bb-0310-9956-ffa450edef68
2001-01-12 01:08:22 +00:00
Ryan Bloom
bb227c01e1
First pass at a set of caching filters and handlers. This implements a
...
working disk cache. There are a lot of improvements to be made to this,
but this is a pretty good start to a dynamic cache.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86995 13f79535-47bb-0310-9956-ffa450edef68
2000-11-17 18:33:33 +00:00