r4658 - trunk/varnish-cache/bin/varnishd

phk at varnish-cache.org phk at varnish-cache.org
Tue Apr 13 23:06:16 CEST 2010


Author: phk
Date: 2010-04-13 23:06:16 +0200 (Tue, 13 Apr 2010)
New Revision: 4658

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Round up estimate of HTTP header space to alow for alignment of
allocations in workspace.



Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2010-04-13 21:05:11 UTC (rev 4657)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2010-04-13 21:06:16 UTC (rev 4658)
@@ -679,7 +679,7 @@
 			continue;
 #include "http_headers.h"
 #undef HTTPH
-		l += Tlen(fm->hd[u]) + 1;
+		l += PRNDUP(Tlen(fm->hd[u]) + 1);
 		(*nhd)++;
 		// fm->hdf[u] |= HDF_COPY;
 	}




More information about the varnish-commit mailing list