diff options
Diffstat (limited to 'static/freebsd/man9/accf_http.9 3.html')
| -rw-r--r-- | static/freebsd/man9/accf_http.9 3.html | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/static/freebsd/man9/accf_http.9 3.html b/static/freebsd/man9/accf_http.9 3.html deleted file mode 100644 index f25c2c43..00000000 --- a/static/freebsd/man9/accf_http.9 3.html +++ /dev/null @@ -1,89 +0,0 @@ -<table class="head"> - <tr> - <td class="head-ltitle">ACCF_HTTP(9)</td> - <td class="head-vol">Kernel Developer's Manual</td> - <td class="head-rtitle">ACCF_HTTP(9)</td> - </tr> -</table> -<div class="manual-text"> -<section class="Sh"> -<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> -<p class="Pp"><code class="Nm">accf_http</code> — <span class="Nd">buffer - incoming connections until a certain complete HTTP request - arrives</span></p> -</section> -<section class="Sh"> -<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> -<p class="Pp"><code class="Cd">options INET</code> - <br/> - <code class="Cd">options ACCEPT_FILTER_HTTP</code></p> -<p class="Pp">In <a class="Xr">rc.conf(5)</a>: - <br/> - <code class="Cd">kld_list="accf_http"</code></p> -</section> -<section class="Sh"> -<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> -<p class="Pp">This is a filter to be placed on a socket that will be using - <a class="permalink" href="#accept"><code class="Fn" id="accept">accept</code></a>() - to receive incoming HTTP connections.</p> -<p class="Pp" id="accept~2">It prevents the application from receiving the - connected descriptor via - <a class="permalink" href="#accept~2"><code class="Fn">accept</code></a>() - until either a full HTTP/1.0 or HTTP/1.1 HEAD or GET request has been - buffered by the kernel.</p> -<p class="Pp" id="accept~3">If something other than a HTTP/1.0 or HTTP/1.1 HEAD - or GET request is received the kernel will allow the application to receive - the connection descriptor via - <a class="permalink" href="#accept~3"><code class="Fn">accept</code></a>().</p> -<p class="Pp" id="select">The utility of <code class="Nm">accf_http</code> is - such that a server will not have to context switch several times before - performing the initial parsing of the request. This effectively reduces the - amount of required CPU utilization to handle incoming requests by keeping - active processes in preforking servers such as Apache low and reducing the - size of the file descriptor set that needs to be managed by interfaces such - as <a class="permalink" href="#select"><code class="Fn">select</code></a>(), - <a class="permalink" href="#poll"><code class="Fn" id="poll">poll</code></a>() - or - <a class="permalink" href="#kevent"><code class="Fn" id="kevent">kevent</code></a>() - based servers.</p> -<p class="Pp">The <code class="Nm">accf_http</code> kernel option is also a - module that can be enabled at runtime via <a class="Xr">kldload(8)</a> if - the INET option has been compiled into the kernel.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1> -<p class="Pp">Assuming ACCEPT_FILTER_HTTP has been included in the kernel config - file or the <code class="Nm">accf_http</code> module has been loaded, this - will enable the http accept filter on the socket - <var class="Fa">sok</var>.</p> -<div class="Bd Pp Bd-indent Li"> -<pre> struct accept_filter_arg afa; - - bzero(&afa, sizeof(afa)); - strcpy(afa.af_name, "httpready"); - setsockopt(sok, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa));</pre> -</div> -</section> -<section class="Sh"> -<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE - ALSO</a></h1> -<p class="Pp"><a class="Xr">setsockopt(2)</a>, - <a class="Xr">accept_filter(9)</a></p> -</section> -<section class="Sh"> -<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1> -<p class="Pp">The accept filter mechanism and the accf_http filter were - introduced in <span class="Ux">FreeBSD 4.0</span>.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> -<p class="Pp">This manual page and the filter were written by - <span class="An">Alfred Perlstein</span>.</p> -</section> -</div> -<table class="foot"> - <tr> - <td class="foot-date">November 15, 2000</td> - <td class="foot-os">FreeBSD 15.0</td> - </tr> -</table> |
