[master] 3327577 Only look for accept-filters if platform supports them.

Poul-Henning Kamp phk at FreeBSD.org
Fri May 22 12:51:39 CEST 2015


commit 3327577283bc3da96278048f57ece99948c444a3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri May 22 10:49:59 2015 +0000

    Only look for accept-filters if platform supports them.

diff --git a/bin/varnishd/cache/cache_acceptor.c b/bin/varnishd/cache/cache_acceptor.c
index 0fb6349..210737e 100644
--- a/bin/varnishd/cache/cache_acceptor.c
+++ b/bin/varnishd/cache/cache_acceptor.c
@@ -489,6 +489,7 @@ vca_acct(void *arg)
 		assert (ls->sock > 0);		// We know where stdin is
 		AZ(listen(ls->sock, cache_param->listen_depth));
 		vca_tcp_opt_set(ls->sock, 1);
+#ifdef HAVE_ACCEPT_FILTERS
 		if (cache_param->accept_filter) {
 			i = VTCP_filter_http(ls->sock);
 			if (i)
@@ -496,6 +497,7 @@ vca_acct(void *arg)
 				    "Kernel filtering: sock=%d, ret=%d %s",
 				    ls->sock, i, strerror(errno));
 		}
+#endif /* HAVE_ACCEPT_FILTERS */
 	}
 
 	need_test = 1;



More information about the varnish-commit mailing list