From owner-freebsd-java@FreeBSD.ORG Fri Jun 24 15:02:47 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15A86106566C for ; Fri, 24 Jun 2011 15:02:47 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id C88EE8FC13 for ; Fri, 24 Jun 2011 15:02:46 +0000 (UTC) Received: from [212.182.167.131] (helo=sjakie.klop.ws) by smtp-out1.tiscali.nl with esmtp (Exim) (envelope-from ) id 1Qa7hB-0004XA-AK; Fri, 24 Jun 2011 16:49:21 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 1F032E199; Fri, 24 Jun 2011 16:49:10 +0200 (CEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-java@freebsd.org, "Achilleas Mantzios" References: <201106241650.09920.achill@matrix.gatewaynet.com> Date: Fri, 24 Jun 2011 16:49:09 +0200 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: <201106241650.09920.achill@matrix.gatewaynet.com> User-Agent: Opera Mail/11.11 (FreeBSD) Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: How to socket accept filters? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 15:02:47 -0000 On Fri, 24 Jun 2011 15:50:09 +0200, Achilleas Mantzios =20 wrote: > =CE=A3=CF=84=CE=B9=CF=82 Friday 24 June 2011 13:00:24 =CE=BF/=CE=B7 Lui= s Neves =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: >> 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 =20 filtering. >> Any pointers? >> Thanks. I have never seen it in use and google is also silent about it. You could= =20 create a patch for openjdk or use some native code in java. Out of curiosity: What are you doing that optimizing accept() is worth th= e =20 effort? Ronald.