[master] 672e6d7 Go to v_b_e{} if we get a 304 without INM/IMS

Federico G. Schwindt fgsch at lodoss.net
Mon Jul 11 14:07:06 CEST 2016


commit 672e6d76592334e756c4e9e971a6966139663fc9
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 89a346b..37f0346 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -420,7 +420,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