summaryrefslogtreecommitdiff
path: root/buckets
Commit message (Collapse)AuthorAgeFilesLines
* * Introduce apr_brigade_split_ex. apr_brigade_split_ex allows to reuserpluem2008-05-281-4/+15
| | | | | | | | | an already existing brigade instead of creating a new one. Thus it can be used to lower the memory footprint where brigades need to be split many times during the lifetime of a pool. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@661080 13f79535-47bb-0310-9956-ffa450edef68
* * Fix comment. No functional change.rpluem2008-02-271-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@631558 13f79535-47bb-0310-9956-ffa450edef68
* * We are working with point64 here, no longer with point.rpluem2008-02-271-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@631553 13f79535-47bb-0310-9956-ffa450edef68
* * apr_brigade_partition:rpluem2008-02-251-11/+21
| | | | | | | | | | | Use a 64 bit unsigned int for all calculations of point to avoid overflows on systems where apr_off_t > apr_size_t (e.g. 32 bit with LFS) while still doing the correct thing on other systems where apr_off_t = apr_size_t. We currently do not support platforms where apr_off_t, apr_size_t > 64 bit. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@630780 13f79535-47bb-0310-9956-ffa450edef68
* * Fix compiler warning as written is signed.rpluem2008-02-241-1/+1
| | | | | | | Noted by: nikke git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@630625 13f79535-47bb-0310-9956-ffa450edef68
* Adopt 1.3.0 trunk's new constant.wrowe2007-10-241-7/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@588062 13f79535-47bb-0310-9956-ffa450edef68
* From discussion on list with Jeff and Martin, this appearswrowe2007-10-241-4/+8
| | | | | | | | to be the safest solution for the true max_unsigned whatever, invert all the bits to 1 and never treat it as signed. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@588056 13f79535-47bb-0310-9956-ffa450edef68
* Folks, I'd appreciate if this received extra attention;wrowe2007-10-231-5/+13
| | | | | | | | | | | I believe my analysis is correct that we protect from the cases where the off_t 'point' arg (signed!) falls out of scope of the size_t e->length (equivilant or smaller sized, and unsigned.) We could use an official MAX_SIZE_T - heh. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@587434 13f79535-47bb-0310-9956-ffa450edef68
* We should really check thesejim2007-10-051-0/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@582228 13f79535-47bb-0310-9956-ffa450edef68
* Return the correct status. Fix bug introduced by r558361.davi2007-07-211-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@558384 13f79535-47bb-0310-9956-ffa450edef68
* Make apr_brigade_length() always update the length parameter. In case of adavi2007-07-211-4/+4
| | | | | | | | | bucket read error, return the length up to the error. PR: 40893 git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@558361 13f79535-47bb-0310-9956-ffa450edef68
* Update license headers.jerenkrantz2007-01-1513-78/+78
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@496440 13f79535-47bb-0310-9956-ffa450edef68
* * buckets/apr_brigade.c (apr_brigade_to_iovec): Fix strict-aliasingjorton2006-04-191-3/+5
| | | | | | | warning with gcc 4.1. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@395223 13f79535-47bb-0310-9956-ffa450edef68
* * buckets/apr_buckets_file.c (file_bucket_read): If an EOF was read,jorton2005-06-021-2/+2
| | | | | | | | | | | | | the file must have been truncated; in this case, do not insert a new FILE bucket, and do return APR_EOF to the caller. * test/testbuckets.c (test_truncfile): Add test case. PR: 34708 Submitted by: trawick, jorton git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@179564 13f79535-47bb-0310-9956-ffa450edef68
* Fix memory leak when in APR_POOL_DEBUG mode.jwoolley2005-03-111-0/+7
| | | | | | | | Submitted by: Joe Schaefer git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@157149 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.jerenkrantz2005-02-0413-13/+26
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@151413 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.jorton2004-11-181-4/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@76270 13f79535-47bb-0310-9956-ffa450edef68
* * buckets/apr_brigade.c (apr_brigade_insert_file): New function.jorton2004-11-171-0/+33
| | | | | | | * test/testbucket.c (test_insertfile): New test. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@76134 13f79535-47bb-0310-9956-ffa450edef68
* fix preproc directive for APR_POOL_DEBUGclar2004-08-101-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@59117 13f79535-47bb-0310-9956-ffa450edef68
* * buckets/apr_buckets_alloc.c (apr_bucket_alloc_create,jorton2004-06-221-1/+19
| | | | | | | | apr_bucket_alloc_destroy): Cope with a NULL pool->allocator in debug mode. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@59065 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0.jerenkrantz2004-02-1313-637/+130
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58989 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencygstein2004-02-051-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upon Python at packaging time, but not at end-user config/build time. As far as I can tell, the build continues to function properly. (out-of-dir config/make not tested, and apr-iconv prolly needs some work) The buildconf scripts now generate a build-outputs.mk file which is included by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk specifies all of the various files present in the distribution. The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports. The corresponding delete-* targets were eliminated since we have a precise set of inputs. The subdirs' Makefiles were removed since they are no longer called/used. The apr-util/uri Makefile was responsible for compiling a C program to generate the uri_delims.h file. That process was replaced by a Python script to generate the header (called by buildconf). The .c and .dsp were left for the Windows build to continue, but that should be revamped. build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of cleanup is still needed. Much of the recursive/local/x- logic is no longer needed and can be elimianated. rules.mk was created for inclusion by N makefiles, but that isn't really true any more, so it could probably be tossed (caveat: test/Makefile). Saved for a phase 2. Some additional work was added to properly clean up files in */build/, rather than relying on a makefile in there. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58980 13f79535-47bb-0310-9956-ffa450edef68
* ripjwoolley2003-11-161-12/+19
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58952 13f79535-47bb-0310-9956-ffa450edef68
* deal with a couple of apr interface changes (renaming one function,trawick2003-09-031-3/+1
| | | | | | | removing ignored parameter from another) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58923 13f79535-47bb-0310-9956-ffa450edef68
* at long last, the bucket_alloc_create changes.jwoolley2003-08-281-10/+20
| | | | | | | | | | | | | | | * apr_bucket_alloc_create() now uses the apr_allocator_t from the pool that was passed in rather than creating its own. * added apr_bucket_alloc_create_ex() which takes an apr_allocator_t directly instead of an apr_pool_t. * either way, the apr_bucket_alloc_t itself is allocated from the apr_allocator_t, not palloc'ed. so in the non _ex() case, the only thing the pool gains you is a cleanup. Reviewed by: Jean-Jacques Clar, Sander Striker, Brad Nicholes git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58919 13f79535-47bb-0310-9956-ffa450edef68
* bucket debugging. a series of consistency checks for bucket brigades.jwoolley2003-08-282-0/+27
| | | | | | | | | | to enable, define APR_BUCKET_DEBUG at compile time. it was suggested that I should have a --enable-bucket-debug configure option instead, but because of the way we use APR's rules.mk, it's difficult to add extra CPPFLAGS from apr-util's configure.in. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58918 13f79535-47bb-0310-9956-ffa450edef68
* revert the previous commit. i think there's a cleaner way. will try itjwoolley2003-07-021-9/+1
| | | | | | | | tomorrow. regardless, i don't want this addition to the api to get out into the wild unless i'm sure it's needed, which i'm currently not. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58910 13f79535-47bb-0310-9956-ffa450edef68
* an addition to the api to allow httpd mpm's to share an apr_allocator_tjwoolley2003-07-021-1/+9
| | | | | | | | between a thread pool and the thread's bucket allocator. this will allow the freelist max size to be managed. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58909 13f79535-47bb-0310-9956-ffa450edef68
* Fix a nasty segfault in mmap_bucket_setaside() caused by passingjwoolley2003-01-291-1/+1
| | | | | | | | | | | an incompatible pointer type to mmap_bucket_destroy(void*). PR: 16533 Submitted by: Gerard Eviston <geviston@bigpond.net.au> Reviewed by: Cliff Woolley git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58839 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notifications to 2003.thommay2003-01-0113-13/+13
| | | | | | | No Functional changes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58816 13f79535-47bb-0310-9956-ffa450edef68
* put the old pool-based brigade allocation back in place for httpd-2.0.44 releasebrianp2002-12-231-12/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58810 13f79535-47bb-0310-9956-ffa450edef68
* Allocate brigades from a bucket_allocator rather than a pool.brianp2002-12-171-7/+12
| | | | | | | | | | | | | There are two reasons for this: 1. Make the implementation of apr_brigade_create() match the documentation in apr_buckets.h, which says that we don't allocate from the pool. 2. Allow brigades to be used in situations where it may be infeasible to tie a brigade's lifetime to that of a pool--e.g., an async web server. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58806 13f79535-47bb-0310-9956-ffa450edef68
* Update to latest APR renamesthommay2002-11-301-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58793 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the apr_mmap_dup ownership problem for disjoint pools by gettingjwoolley2002-11-231-21/+23
| | | | | | | | | rid of the is_owner thing completely. Instead, we place all of the dup'ed apr_mmap_t's in a ring with each other (essentially the same as refcounting the mmaped region but without the where-do-you-store-it pitfall). git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58790 13f79535-47bb-0310-9956-ffa450edef68
* Avoid declaring exports that exist within only a certain configurationwrowe2002-10-131-2/+4
| | | | | | | for later portability. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58781 13f79535-47bb-0310-9956-ffa450edef68
* In apr_brigade_writev(), create heap buckets instead ofbrianp2002-09-301-6/+13
| | | | | | | | transient buckets if there is no flush function. (Thanks to Greg Stein for catching this.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58769 13f79535-47bb-0310-9956-ffa450edef68
* Rewrite of apr_brigade_writev(). It's now more efficient forbrianp2002-09-291-47/+85
| | | | | | | | | both large and small inputs: zero-copy for data larger than 8KB, fewer operations (and fewer branches) per for-loop iteration for the <= 8KB case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58768 13f79535-47bb-0310-9956-ffa450edef68
* Flush the brigade in apr_brigade_writev() whenever the heapbrianp2002-09-231-8/+18
| | | | | | | bucket is full or a buffer > 8KB is output. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58761 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigade_writev fix: don't call brigade flush function if it it's undefinedbrianp2002-09-221-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58760 13f79535-47bb-0310-9956-ffa450edef68
* Added apr_brigade_writev() functionbrianp2002-09-211-0/+65
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58759 13f79535-47bb-0310-9956-ffa450edef68
* Simpler, less optimized code for apr_brigade_puts()brianp2002-09-211-62/+11
| | | | | | | | | | | | | The loop-unrolled code wasn't helping enough anyway, because the httpd calls this function many times per response to output short strings. I think we need an alternate API that can amortize the function call overhead and the heap bucket condition checking across multiple string writes...quite possibly apr_brigade_writev(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58758 13f79535-47bb-0310-9956-ffa450edef68
* Changed file_bucket_setaside() to use apr_file_setaside() insteadbrianp2002-08-161-10/+1
| | | | | | | | | of turning the file bucket into an mmap bucket. This will enable us to avoid an extraneous mmap in various cases where the httpd sets aside brigades. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58733 13f79535-47bb-0310-9956-ffa450edef68
* Revert rev 1.42 of apr_buckets_socket.c and rev 1.52 of apr_buckets_pipe.cjerenkrantz2002-07-162-12/+2
| | | | | | | | | | | APR_NONBLOCK_READ means that we have no timeout - i.e. that we read immediately. Leaving the timeout set by the 'upstream' application is incorrect in this state. This fixes httpd-2.0 blocking in check_pipeline_flush() for EATCRLF modes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58687 13f79535-47bb-0310-9956-ffa450edef68
* Fixed socket_bucket_read so that it only set the socket to nonblocking mode ↵bnicholes2002-07-151-1/+6
| | | | | | | | | | | if it isn't already.Otherwise it messes up the timeout value that may have been intentionally set by the upstream application. This matches the same change that was made in pipe_bucket_read. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58686 13f79535-47bb-0310-9956-ffa450edef68
* APR occurances to update for socket_opt_get/set and socket_timeout_get/setwrowe2002-07-151-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58685 13f79535-47bb-0310-9956-ffa450edef68
* Oops, wrong comment stylebnicholes2002-07-121-2/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58684 13f79535-47bb-0310-9956-ffa450edef68
* Fixed pipe_bucket_read so that it only set the pipe to nonblocking mode if itbnicholes2002-07-121-1/+5
| | | | | | | | isn't already. Otherwise it messes up the timeout value that may have been intentionally set by the upstream application. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58683 13f79535-47bb-0310-9956-ffa450edef68
* New emit on win32. Since this is a heap bucket, we are always dealingwrowe2002-07-021-1/+2
| | | | | | | | in start offsets that fit in apr_size_t. This doesn't need the file sized apr_off_t resolution. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58679 13f79535-47bb-0310-9956-ffa450edef68
* On second thought, I liked this better the way it was before because itjwoolley2002-07-011-1/+2
| | | | | | | | | makes it crystal clear that the *only* difference between apr_brigade_destroy() and apr_brigade_cleanup() is that one kills the cleanup and the other one doesn't. An important distinction. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58678 13f79535-47bb-0310-9956-ffa450edef68
* This is the exact same thing really, but we might as well use thejwoolley2002-07-011-2/+1
| | | | | | | pool API the way it was meant to be since it's there and all... git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58677 13f79535-47bb-0310-9956-ffa450edef68