-#if defined(FEATURE_ACCEPT_FILTER) && defined(SO_ACCEPTFILTER)
- if (csp->config->enable_accept_filter)
- {
- struct accept_filter_arg af_options;
- bzero(&af_options, sizeof(af_options));
- strlcpy(af_options.af_name, "httpready", sizeof(af_options.af_name));
- if (setsockopt(fd, SOL_SOCKET, SO_ACCEPTFILTER, &af_options,
- sizeof(af_options)))
- {
- log_error(LOG_LEVEL_ERROR,
- "Enabling accept filter for socket %d failed: %E", fd);
- }
- }
-#endif