Re: In-kernel http server

From: Daniel C. Sobral <dcs_at_tcoip.com.br>
Date: Fri, 02 May 2003 10:20:42 -0300
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.
Received on Fri May 02 2003 - 04:21:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:05 UTC