r2275 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Nov 20 18:20:48 CET 2007


Author: phk
Date: 2007-11-20 18:20:47 +0100 (Tue, 20 Nov 2007)
New Revision: 2275

Modified:
   trunk/varnish-cache/bin/varnishd/cache_fetch.c
Log:
Reset the objects length to zero after we zapped all its component
parts, otherwise we will get trouble (#167 ?) later.


Modified: trunk/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_fetch.c	2007-11-20 16:43:09 UTC (rev 2274)
+++ trunk/varnish-cache/bin/varnishd/cache_fetch.c	2007-11-20 17:20:47 UTC (rev 2275)
@@ -395,6 +395,7 @@
 		}
 		VBE_UpdateHealth(sp, vc, -4);
 		VBE_ClosedFd(sp->wrk, vc);
+		sp->obj->len = 0;
 		return (__LINE__);
 	}
 




More information about the varnish-commit mailing list