[master] 90b8ec3 make bereq.uncacheable read-only outside backend_fetch

Nils Goroll nils.goroll at uplex.de
Thu Oct 9 17:28:32 CEST 2014


commit 90b8ec32602851367a86752ffa997809a07f8d10
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Oct 9 17:28:20 2014 +0200

    make bereq.uncacheable read-only outside backend_fetch
    
    Writing to bereq.uncacheable in backend_response and backend_error would only
    make sense in the context of a retry. In most real world cases, writing to
    be*resp*.uncacheable would be intended in backend_response and backend_error.

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index b92705b..ea07a32 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -360,7 +360,7 @@ sp_variables = [
 	('bereq.uncacheable',
 		'BOOL',
 		( 'backend', ),
-		( 'backend', ), """
+		( 'backend_fetch', ), """
 		Indicates whether the object requested from the backend is
 		going to be uncacheable - either because the request was an
 		explicit pass from the client side or a hit on an uncacheable



More information about the varnish-commit mailing list