Skip to content

Commit

Permalink
* server/listen.c: Fix building on FreeBSD.
Browse files Browse the repository at this point in the history
Tested on FreeBSD 5.4.  Seems to enable the accept filters correctly, for both HTTP and HTTPS.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/listen-protocol@171035 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pquerna committed May 20, 2005
1 parent 3208f21 commit 80f3319
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/listen.c
Expand Up @@ -217,11 +217,12 @@ static void ap_apply_accept_filter(apr_pool_t *p, ap_listen_rec *lis,

if (accf) {
#if APR_HAS_SO_ACCEPTFILTER
rv = apr_socket_accept_filter(s, ACCEPT_FILTER_NAME, "");
rv = apr_socket_accept_filter(s, apr_pstrdup(p, accf),
apr_pstrdup(p,""));
if (rv != APR_SUCCESS && !APR_STATUS_IS_ENOTIMPL(rv)) {
ap_log_perror(APLOG_MARK, APLOG_WARNING, rv, p,
"Failed to enable the '%s' Accept Filter",
ACCEPT_FILTER_NAME);
accf);
}
#else
#ifdef APR_TCP_DEFER_ACCEPT
Expand Down

0 comments on commit 80f3319

Please sign in to comment.