httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: My hacked mod_xsendfile
Date Fri, 25 Jan 2008 20:51:15 GMT
* Akins, Brian wrote:

> On 1/25/08 3:33 PM, "André Malo" <nd@perlig.de> wrote:
>  If it should not
>
> > be chunked, the backend simply has to provide a content-length along
> > with the x-sendfile header.
>
> Okay, I add " ap_set_content_length(r, sub->finfo.size)" and that fixes
> it and does not chunk.

I don't recommend doing that as it contains a race condition (the file might 
be changed in the meantime). By backend I meant here the script providing 
the x-sendfile header. That's the only place knowing the behaviour of the 
file exactly.
If you want it there nevertheless I'd make it configurable.

nd
-- 
print "Just Another Perl Hacker";

# André Malo, <http://www.perlig.de/> #

Mime
View raw message