]> err.no Git - varnish/commit
Added support for setting read timeouts for backend requests (first_byte_timeout...
authorpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Nov 2008 14:13:57 +0000 (14:13 +0000)
committerpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Nov 2008 14:13:57 +0000 (14:13 +0000)
commit035d0863169ed32409a20f64a48de768442ddadc
treec46a2c5491b6ebe26b9b217113c03142810640dc
parent7fabaffb39f282ca09eeec74313fec25483bae38
Added support for setting read timeouts for backend requests (first_byte_timeout and between_bytes_timeout), in addition to make the connect_timeout available for the bereq object in vcl_miss and vcl_fetch.

first_byte_timeout is a read timeout from the connection to the backend is created to when the first byte arrives. It can be set as a parameter to varnish, as a field in the backend declaration or as bereq.first_byte_timeout in vcl_miss and vcl_pass.

between_bytes_timeout is a read timeout between each read from the backend. It can be set as a parameter to varnish, as a field in the backend declaration or as bereq.between_bytes_timeout in vcl_miss and vcl_pass.

The time unit for these timeout values are seconds. NOTE: The connect_timeout previously used milliseconds as time unit, so beware.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3406 d4fa192b-c00b-0410-8231-f00ffab90ce4
25 files changed:
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_backend.c
varnish-cache/bin/varnishd/cache_backend.h
varnish-cache/bin/varnishd/cache_backend_cfg.c
varnish-cache/bin/varnishd/cache_center.c
varnish-cache/bin/varnishd/cache_fetch.c
varnish-cache/bin/varnishd/cache_session.c
varnish-cache/bin/varnishd/cache_vrt.c
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/mgt_param.c
varnish-cache/bin/varnishtest/tests/b00020.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/b00021.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/b00022.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/b00023.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/b00024.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/b00025.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/b00026.vtc [new file with mode: 0644]
varnish-cache/include/libvarnish.h
varnish-cache/include/vrt.h
varnish-cache/include/vrt_obj.h
varnish-cache/lib/libvarnish/tcp.c
varnish-cache/lib/libvcl/vcc_backend.c
varnish-cache/lib/libvcl/vcc_fixed_token.c
varnish-cache/lib/libvcl/vcc_gen_obj.tcl
varnish-cache/lib/libvcl/vcc_obj.c