• Nils Goroll's avatar
    Try to send VDP_END with the last bytes · c2d45aef
    Nils Goroll authored
    Follow-up to #3125 :
    
    That PR added VDP_END, but always issued another VDP_bytes() call with
    no data.
    
    We now make it the responsibility of the object iterator to send
    VDP_END and opportunistically try to issue it with the last bytes in
    order to avoid the additional VDP_bytes() call with no data.
    
    As noted by Martin in
    https://github.com/varnishcache/varnish-cache/pull/3125#issuecomment-600620905
    the advantage is that "in H/2 there is the need to send a frame with a
    last bit set to mark the end of the stream" and in H/1 we could generate
    the end chunk right after the last bit of data.
    
    This change does not implement these optimizations yet, but prepares the
    grounds.
    c2d45aef
Name
Last commit
Last update
.circleci Loading commit data...
.github Loading commit data...
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
vmod Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...
vtc.am Loading commit data...