How to socket accept filters?

Ronald Klop ronald-freebsd8 at klop.yi.org
Fri Jun 24 15:02:47 UTC 2011


On Fri, 24 Jun 2011 15:50:09 +0200, Achilleas Mantzios  
<achill at matrix.gatewaynet.com> wrote:

> Στις Friday 24 June 2011 13:00:24 ο/η Luis Neves έγραψε:
>> Hello,
>>
>> Is there any way to enable accept filters for a socket in Java/FreeBSD?
>> I'm particularly interested in enabling the http accept filter.
>>
>
> You can do it in OS level maybe. ipfw, pf etc...
> I used to run ipfw, but now i switched to pf, it seems more powerful.

He means accf_http(9) I presume. That is something else than firewall  
filtering.

>> Any pointers?
>> Thanks.

I have never seen it in use and google is also silent about it. You could  
create a patch for openjdk or use some native code in java.
Out of curiosity: What are you doing that optimizing accept() is worth the  
effort?

Ronald.


More information about the freebsd-java mailing list