Loading ...
Sorry, an error occurred while loading the content.
 

Re: [mp2] Help with sendfile and offset value

Expand Messages
  • Geoffrey Young
    ... sure thing :) ... apache makes the decision as to whether you actually need a Content-Length header. if you re using HTTP/1.1, for instance it will use a
    Message 1 of 7 , Feb 27, 2004
      > Awesome! Thank you so much...this is great.

      sure thing :)


      >> actually, you don't need to calculate the length of the response anymore
      >> either. apache 2.0 has a content-length filter that uses the same
      >> mechanism
      >> 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.

      apache makes the decision as to whether you actually need a Content-Length
      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 ;)

      --Geoff


      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.