NetBSD + nginx-0.8.53 + accept filters - not working

Maxim Dounin mdounin at mdounin.ru
Tue Aug 9 15:03:48 UTC 2011


Hello!

On Tue, Aug 09, 2011 at 10:22:34AM -0400, hugo wrote:

> Maxim,
> 
> According to
> http://fxr.watson.org/fxr/ident?im=bigexcerpts;i=SO_ACCEPTFILTER,
> SO_ACCEPTFILTER is defined as 0x1000, and I see this:
> 
>  23235      1 nginx    CALL 
> setsockopt(7,0xffff,0x1000,0x7f7fffffd410,0x100)
>  23235      1 nginx    RET   setsockopt 0
> 
> From the manpage:
> 
> RETURN VALUES
>      A 0 is returned if the call succeeds, -1 if it fails.

Do you actually see accept filter works, i.e. holding connection in 
incomplete queue till http request comes?

Not sure, but likely NetBSD's netstat should show this as well as 
FreeBSD's one with "netstat -Lan":

$ netstat -Lan
Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen         Local Address
...
tcp4  0/1/128        *.8080
...

Note "1" in incqlen: this is telnet connection opened without http 
request sent.

Maxim Dounin



More information about the nginx mailing list