[4.1] 918e059 Go to v_b_e{} if we get a 304 without INM/IMS

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Mon Sep 12 15:48:16 CEST 2016


commit 918e059ab08b13def7ebfb8c54717aea2825ce95
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Jul 11 13:04:23 2016 +0100

    Go to v_b_e{} if we get a 304 without INM/IMS
    
    Spotted by Foxik on #varnish @ irc.linpro.no.

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index 8a133dd..98336ed 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -416,7 +416,7 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
 			    "304 response but not conditional fetch");
 			bo->htc->doclose = SC_RX_BAD;
 			VDI_Finish(bo->wrk, bo);
-			return (F_STP_FAIL);
+			return (F_STP_ERROR);
 		}
 	}
 



More information about the varnish-commit mailing list