Welcome! Log In Create A New Profile

Advanced

Re: NetBSD + nginx-0.8.53 + accept filters - not working

Maxim Dounin
August 09, 2011 11:04AM
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
Subject Author Posted

NetBSD + nginx-0.8.53 + accept filters - not working

hugo August 09, 2011 05:48AM

Re: NetBSD + nginx-0.8.53 + accept filters - not working

Maxim Dounin August 09, 2011 07:08AM

Re: NetBSD + nginx-0.8.53 + accept filters - not working

Maxim Dounin August 09, 2011 07:12AM

Re: NetBSD + nginx-0.8.53 + accept filters - not working

hugo August 09, 2011 09:03AM

Re: NetBSD + nginx-0.8.53 + accept filters - not working

hugo August 09, 2011 09:44AM

Re: NetBSD + nginx-0.8.53 + accept filters - not working

Maxim Dounin August 09, 2011 10:08AM

Re: NetBSD + nginx-0.8.53 + accept filters - not working

hugo August 09, 2011 10:22AM

Re: NetBSD + nginx-0.8.53 + accept filters - not working

Maxim Dounin August 09, 2011 11:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready