Streaming documentation

Martin Blix Grydeland martin at varnish-software.com
Thu Jan 12 15:30:06 CET 2012


Hi PHK,

Attached is a patch with proposed documentation changes for streaming-ng.
(Not all of the functionality referenced there is implemented yet).

Example VCL usage follows:

sub vcl_fetch {
     set beresp.do_stream = true;
     if (req.http.host ~ "my.dvdimage.host") {
         /* These hosts serve static dvdimage's from nginx, don't try to
cache and don't waste cache space on them */
         set beresp.stream_pass_bufsize = 10M;
         return (hit-for-pass);
    } else if (req.http.host ~ "custom.image.host") {
        /* Serves custum tailored images, non-cacheable. Forking webserver,
keep backend connection time to a minimum */
        set beresp.stream_pass_bufsize = 0;
        return (hit-for-pass);
    }
}

Martin

-- 
Martin Blix Grydeland
Varnish Software AS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20120112/1c1bc859/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: streaming-documentation.patch
Type: text/x-patch
Size: 3609 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20120112/1c1bc859/attachment.bin>


More information about the varnish-dev mailing list