accept_filter being ignored

Jim Ohlstein jim at ohlste.in
Thu Feb 18 21:19:20 UTC 2016


Hello,

Not sure if I should be directing this to a FreeBSD list or here, but 
here goes.

I have set accept_filter= in listen directives:

	server {
		listen 80 accept_filter=http_ready;
		listen [::]:80 accept_filter=http_ready;
		listen 443 ssl accept_filter=data_ready;
		listen [::]:443 ssl accept_filter=data_ready;
		
		...

	}


The correct modules are loaded at boot:

# kldstat -v | grep accf
2 1 0xffffffff814bf000 1598 accf_data.ko (/boot/kernel/accf_data.ko)
1 accf_data
3 1 0xffffffff814c1000 26a0 accf_http.ko (/boot/kernel/accf_http.ko)
2 accf_http


But I am seeing the following in the error log after a reboot (or on the 
console after an nginx restart):

2016/02/18 16:04:06 [alert] 823#100446: setsockopt(SO_ACCEPTFILTER, 
"http_ready") for 0.0.0.0:80 failed, ignored (2: No such file or directory)
2016/02/18 16:04:06 [alert] 823#100446: setsockopt(SO_ACCEPTFILTER, 
"http_ready") for [::]:80 failed, ignored (2: No such file or directory)
2016/02/18 16:04:06 [alert] 823#100446: setsockopt(SO_ACCEPTFILTER, 
"data_ready") for 0.0.0.0:443 failed, ignored (2: No such file or directory)
2016/02/18 16:04:06 [alert] 823#100446: setsockopt(SO_ACCEPTFILTER, 
"data_ready") for [::]:443 failed, ignored (2: No such file or directory)

Box is running FreeBSD 10-STABLE.

Any hints?


-- 
Jim Ohlstein


"Never argue with a fool, onlookers may not be able to tell the 
difference." - Mark Twain



More information about the nginx mailing list