# Accept\_filter being ignored

**URL:** <https://www.ruby-forum.com/t/accept-filter-being-ignored/244092>\
**Category:** NGINX\
**Created:** [February 18, 2016, 10:19pm UTC](https://www.ruby-forum.com/t/accept-filter-being-ignored/244092 "2016-02-18T22:19:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [February 18, 2016, 10:19pm UTC](https://www.ruby-forum.com/t/accept-filter-being-ignored/244092/1 "2016-02-18T22:19:57Z")

</div>

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 O.

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

---

<div class="post-metadata">

**Author:** ![joviyach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Post date:** [February 19, 2016, 11:18am UTC](https://www.ruby-forum.com/t/accept-filter-being-ignored/244092/2 "2016-02-19T11:18:03Z")

</div>

Hi Jim,

On 2/19/16 12:19 AM, Jim O. wrote:

> ```
> listen 443 ssl accept_filter=data_ready;
> listen [::]:443 ssl accept_filter=data_ready;
> 
> ```

[…]

They should be “httpready” and “dataready”, see [Module ngx\_http\_core\_module](http://nginx.org/r/listen)  
for more details.

Also see man pages for accept\_filter(9) and friends.

–  
Maxim K.

---

<div class="post-metadata">

**Author:** ![joviyach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Post date:** [February 19, 2016, 12:45pm UTC](https://www.ruby-forum.com/t/accept-filter-being-ignored/244092/3 "2016-02-19T12:45:05Z")

</div>

Hello,

On 2/19/16 5:18 AM, Maxim K. wrote:

> > ```
> > server {
> > 
> > ```
> 
> Also see man pages for accept\_filter(9) and friends.

Haha. It sucks getting old. I read through the docs several times and  
missed that. Thanks for the help and sorry for the noise.

On a side note, “nginx -t” did not pick up that error.

–  
Jim O.

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