Re: [mp2] Help with sendfile and offset value
> Awesome! Thank you so much...this is great.sure thing :)
>> actually, you don't need to calculate the length of the response anymoreapache makes the decision as to whether you actually need a Content-Length
>> either. apache 2.0 has a content-length filter that uses the same
>> as above (calculating the length of the filter stream after everyone has
>> manipulated the content).
> If I take out the length calcuclation, no Content-Length header gets
> generated. This makes sense though; what if you had 500MB of data... it
> would take many seconds to buffer that from disk while the client
> waited. Better to simply stat the file and send the proper length header.
header. if you're using HTTP/1.1, for instance it will use a chunked
transfer encoding instead, so you would see a Transfer-Encoding header.
anyway, glad you got this sorted out. apache 2.0 is cool, isn't it ;)
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html