pipe mode and sendfile?

Dridi Boukelmoune dridi at varni.sh
Tue Mar 29 17:12:18 CEST 2016


On Tue, Mar 29, 2016 at 5:00 PM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> --------
> In message <CABoVN9DJpBi=m9Nw-T5pmVUDcu+KkSQ8HWhK4s4_Pk2b3qHfQg at mail.gmail.com>
> , Dridi Boukelmoune writes:
>>> That just means that we would have to decompress and recompress
>>> all the streams, in which case we might as well return(pass).
>>
>>Assuming that pipe would be per-connection, [...]
>
> This was in the pipe-per-stream situation.

Yes, in this situation, H2 blurs the line between a pipe and a pass
in Varnish, making them look almost identical but not quite.

The difference ultimately boils down to how the beresp is handled,
including the possibility to retry or restart. Even in H2 vcl_pipe can
still act as a dumb proxy and never bother you with the beresp and
only be around until the stream ends.

Dridi



More information about the varnish-dev mailing list