httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: [PATCH]: mod_logio.c: Feedback sought
Date Fri, 13 Sep 2002 10:25:24 GMT
Actually, I told a lie there. If there is a header Content-Length in the
request, and there is a body, the mod_logio input filter will return
correct length of the body, without the headers. Looking at the example
of APACHECON_IN filter, I noticed a hook that puts the filter just after
the connection has been established, which then makes sure the headers
are filtered as well...

Soooo, back to coding ;-)

Bojan

On Fri, 2002-09-13 at 10:24, Justin Erenkrantz wrote:
> On Fri, Sep 13, 2002 at 10:23:02AM +1000, Bojan Smojver wrote:
> > This is what I came up so far, but I've hit a problem along the way. No
> > matter what I do (or should I say, whatever I tried to do so far :-),
> > the number of input bytes is zero (HTTP/1.1) or not even calculated
> > (HTTP/1.0). The number of output bytes is correct, at least in my tests.
> > Could anyone point out what kind of silliness am I doing in the input
> > filter? I kind of understand what output filters do, but I'm still a bit
> > vague on input filters...
> 
> I think the second parameter to apr_brigade_length in the input
> filter may need to be 1.
> 
> The thing is that you may be getting the socket bucket which has
> an indeterminate length.  Therefore, you need to force a read_all
> to occur.  I'm not exactly sure if that's what is happening, but
> that's my first guess.  -- justin
> 



Mime
View raw message