* ym g <[EMAIL PROTECTED]> [000729 06:12] wrote:
> Greetings, I just read a cvs commit message about accept filters
> into 4.1-STABLE [submitted by Alfred Perlstein]. My C/kernel skills
> are very low compared to others so I couldn't grok much by reading
> the source. I assume they provide some framework for faster socket
> performance. Is this correct, how does one use them

They provide a way to filter incomming connections so that the
application doesn't see them accept()'able until the filter is
satisfied.

The idea is that once apache does a setsocketopt() using SO_ACCEPTFILTER
and accf_http the kernel will hold connections until the full http
request is there.

This reduces the active amount of apache processes needed from the
hundreds, probably down to the tens.

> Are there plans to incorporate this into some webserver like
> Apache/thttpd possibly in conjunction with kqueue/kevent

I don't know, I don't work on those servers.

I do have plans to write a FreeBSD specific server that ought to
be insanely fast, but that'll be a while. :)

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to