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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx