Mailing List Archive

r978 - trunk/varnish-cache/bin/varnishd
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);
}
r978 - trunk/varnish-cache/bin/varnishd [ In reply to ]
phk at projects.linpro.no writes:
> Log:
> Dike out Linux senfile, it doesn't work.
>
> Isolated by: Xing Li <xing at litespeedtech.com>

Xing clearly stated that r956 has the same problem; Linux sendfile
support was added in r971.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no