Hi Johnny,

Il giorno lun, 21/06/2010 alle 15.21 +0200, Johnny Mariéthoz ha scritto:
> the last week I had a meeting with Tibor, and he pointed me on a special 
> apache module called:
> 
> xsendfile: http://tn123.ath.cx/mod_xsendfile.
> 
> It can be used with the current git version of invenio. 
> 
> If I well understood, this module was supposed to perform HTTP Range. But 
> after some tries and configurations on apache, it does not.
> 
> Am I missing something?

do you mean you are actually not receiving a range when performing a
renge request, but the whole file each time?

Actually the work-flow of mod_wsgi+Invenio+mod_xsendfile workflow is
implemented in a way that upon an HTTP request, the control is passed
from apache to mod_wsgi which calls Invenio. Invenio checks the
authorization and if a file should actually be returned, and in that
case, (if mod_xsendfile is enabled), should pass back to Apache
+mod_xsendfile the duty to service the file to the user. This in
principle means that all original headers (including range-request
headers) should be passed as such to xsendfile, and simply an additional
header X-SendFile should be added to guide mod_xsendfile in choosing the
file to serve.

As such the whole stack is called upon every request, even partial range
request, so performances might be yet not ideals, as mod_wsgi+Invenio is
called anyway everytime.

But do you actually see that you range-request are ignored?

Best regards,
        Samuele

Reply via email to