apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject more mmap_setaside()
Date Wed, 20 Jun 2001 04:04:01 GMT

Should mmap_setaside() really be copying the data into a pool?  That means
that, for example, that things like the content_length filter could easily
end up reading in a really big file in its entirety to r->pool, AFAICT.
The only thing that the apr_mmap_t seems to need the pool for is its own
allocation and cleanup... it should be straightforward to copy just the
apr_mmap_t into a new pool, using the same MMAP.  [That's as opposed to
the file bucket case, where it's much easier to just mmap the file into
the right pool than to transfer the apr_file_t.]

Thoughts?
--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA




Mime
View raw message