r978 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Sep 13 21:07:52 CEST 2006


Author: phk
Date: 2006-09-13 21:07:52 +0200 (Wed, 13 Sep 2006)
New Revision: 978

Modified:
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Dike out Linux senfile, it doesn't work.

Isolated by:	Xing Li <xing at litespeedtech.com>


Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2006-09-12 21:21:36 UTC (rev 977)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2006-09-13 19:07:52 UTC (rev 978)
@@ -226,6 +226,7 @@
 			AN(st->stevedore);
 			u += st->len;
 			sp->wrk->acct.bodybytes += st->len;
+#ifdef __FreeBSD__
 #ifdef HAVE_SENDFILE
 			/*
 			 * XXX: the overhead of setting up senddile is not
@@ -241,6 +242,7 @@
 				continue;
 			}
 #endif /* HAVE_SENDFILE */
+#endif /* __FreeBSD__ */
 			VSL_stats->n_objwrite++;
 			WRK_Write(sp->wrk, st->ptr, st->len);
 		}




More information about the varnish-commit mailing list