Re: Memory leak - bug or common feature?

2007-01-16 Thread Graham Dumpleton
On 16/01/2007, at 6:54 PM, [EMAIL PROTECTED] wrote: I have this, very simple input filter def inputfilter(filter): if filter.req.method != 'POST': filter.pass_on() return filter.req.log_error('first read') s = filter.read() while s:

Solved: mod_disk_cache and mod_include bugs and suggestions

2007-01-16 Thread Giuliano Gavazzi
I have a solution for the r470455 mod_disk_cache not caching SSI. There are two points where the module seems incorrect to me, changing those makes it work: 1) in store_body the condition (!APR_BUCKET_IS_EOS(APR_BRIGADE_LAST (bb))) was incorrectly stopping the flow from ever going past (for

Re: Solved: mod_disk_cache and mod_include bugs and suggestions

2007-01-16 Thread Giuliano Gavazzi
Here is the patch against r470455: mod_disk_cache.c.r470455.patch Description: Binary data g

Re: Where is ap_run_default_port()?

2007-01-16 Thread Jeff Trawick
On 1/15/07, Brandon Fosdick [EMAIL PROTECTED] wrote: I'm trying to use ap_default_port() in mod_log_dbd to get the port number from a request_rec, and apparently it's a macro in httpd.h that wraps ap_run_default_port(). But when I compile the module I get error: `ap_run_default_port' was not

Re: Where is ap_run_default_port()?

2007-01-16 Thread Brandon Fosdick
Jeff Trawick wrote: Are you including http_protocol.h to get the definition of ap_run_default_port()? svn/2.2.x/include/http_protocol.h:AP_DECLARE_HOOK(apr_port_t,default_port,(const request_rec *r)) I had a feeling it was created by a macro, but I still wasn't finding it. Thanks for the