]> err.no Git - varnish/commit
Implement the "error" VCL keyword:
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 13 Aug 2006 11:38:13 +0000 (11:38 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 13 Aug 2006 11:38:13 +0000 (11:38 +0000)
commit480e986c19811276d9160fb45cd56921b643d800
treea0116c88ada4343d17921cf2b66c76183276074f
parent3a04e4fb3a14cb09fa162365d50fd08631290a82
Implement the "error" VCL keyword:

 - add fields to struct sess where VRT_error can store the error code and
   message
 - modify cnt_error() to pass these fields to RES_Error(), then clear them
 - modify RES_Error() (and the entire chain) to accept a third argument
   giving an explanation of the error.
 - have RES_Error() reset the worker before writing the error document, to
   make sure wfd is set.

fixes: #4

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@823 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_center.c
varnish-cache/bin/varnishd/cache_response.c
varnish-cache/bin/varnishd/cache_vrt.c
varnish-cache/include/vrt.h
varnish-cache/include/vrt_obj.h
varnish-cache/lib/libvcl/vcc_compile.c
varnish-cache/lib/libvcl/vcc_fixed_token.c