httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dean gaudet <>
Subject Re: application level accept() filter for 1.3.x
Date Sun, 31 Dec 2000 17:47:25 GMT
On Tue, 19 Dec 2000, Theo E. Schlossnagle wrote:

> case of Apache, why even accept() when there is nothing to read()?  In BSD
> there is a kernel modification that augments accept() to *not* return to the
> application until there is data available to be read() by the program that is
> accepting()ing.
>   This OS level solution is not easy to implement under Linux or Solaris.

as of linux 2.4 there is a TCP_DEFER_ACCEPT option which behaves like
freebsd's "dataready" filter.

i'd actually be curious to know how much the "http" filter actually gains
over just plain dataready... given that MSIE always sends the headers in
the first packet; and so does netscape unless its POSTing.  (netscape
splits the headers before the Content-Length/post body.)


View raw message