[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-dev
Subject:    Re: application level accept() filter for 1.3.x
From:       dean gaudet <dgaudet-list-new-httpd () arctic ! org>
Date:       2000-12-31 17:47:25
[Download RAW message or body]

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.)

-dean

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic