Mercurial > hg > nginx
comparison src/core/ngx_connection.c @ 4016:b044d6553d52
Move SO_ACCEPTFILTER and TCP_DEFER_ACCEPT checks into configure.
NetBSD 5.0+ has SO_ACCEPTFILTER support merged from FreeBSD, and having
accept filter check in FreeBSD-specific ngx_freebsd_config.h prevents it
from being used on NetBSD. Therefore move the check into configure (and
do the same for Linux-specific TCP_DEFER_ACCEPT, just to be in line).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 21 Aug 2011 11:37:37 +0000 |
parents | e3cb8e27e413 |
children | c4513d4dd024 4919fb357a5d |
comparison
equal
deleted
inserted
replaced
4015:e0a435f5f504 | 4016:b044d6553d52 |
---|---|
578 &af, sizeof(struct accept_filter_arg)) | 578 &af, sizeof(struct accept_filter_arg)) |
579 == -1) | 579 == -1) |
580 { | 580 { |
581 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, | 581 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, |
582 "setsockopt(SO_ACCEPTFILTER, \"%s\") " | 582 "setsockopt(SO_ACCEPTFILTER, \"%s\") " |
583 " for %V failed, ignored", | 583 "for %V failed, ignored", |
584 ls[i].accept_filter, &ls[i].addr_text); | 584 ls[i].accept_filter, &ls[i].addr_text); |
585 continue; | 585 continue; |
586 } | 586 } |
587 | 587 |
588 ls[i].deferred_accept = 1; | 588 ls[i].deferred_accept = 1; |