RPM Community Forums

Mailing List Message of <rpm-devel>

Re: rsyncable gzdio

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Fri 11 Jul 2008 - 19:25:41 CEST
Message-ID: <20080711172541.GB22932@engelschall.com>
On Fri, Jul 11, 2008, Jeff Johnson wrote:

> [...]
> BTW, while I have yr attention, is there any way to force
> Content-Length: to be returned from a server? Stat(2) is currently
> returning a very "sparse" 0xffffffff, which is accurate even if
> arcanely obscure ...
> [...]

Hmmm... no, you cannot _force_ a server to provide a Content-Length,
although usually a good webserver (like Apache ;-) always provides it if
the length is known to it beforehand (no dynamic content generation).
If one could force a webserver into providing Content-Length this would
mean the server would have to first cache the _whole_ data stream before
sending it out which in turn would mean that streaming data out becomes
rather resource intensive. But if the server provides Content-Length
I would use it, of course. You just cannot depend on this...

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Fri Jul 11 19:31:14 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.