Commit 33275772 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only look for accept-filters if platform supports them.

parent 0cba6f82
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment