In-kernel http server

Daniel C. Sobral dcs at tcoip.com.br
Fri May 2 06:21:02 PDT 2003


Niall Dalton wrote:
> On Thu, 2003-05-01 at 14:43, Daniel C. Sobral wrote:
> 
>>Supposedly, most of the gain of a kernel-based httpd can be achieved 
>>through accept filters (specifically, of course, the accept_http filter).
> 
> 
> You mean simply compiling the accept_http filter into the
> kernel and running a standard web server is it? Has this
> been benchmarked? A google search didn't throw up much for
> me on this.

AFAIK, the application has to select the accept filter:

An accept filter is requested via the setsockopt(2) system call, passing 
in an optname of SO_ACCEPTFILTER. (that's from accept_filter(9))

It's based on something Yahoo uses in-house, if my memory doesn't fail me.

-- 
Daniel C. Sobral                   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
VIVO Centro Oeste Norte
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: Daniel.Capo at tco.net.br
         Daniel.Sobral at tcoip.com.br
         dcs at tcoip.com.br

Outros:
	dcs at newsguy.com
	dcs at freebsd.org
	capo at notorious.bsdconspiracy.net

I exist, therefore I am paid.



More information about the freebsd-current mailing list