Date: Thu, 15 Jun 2000 11:18:43 -0700 (PDT) From: Alfred Perlstein <alfred@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_socket.c uipc_socket2.c src/sys/sys socket.h Message-ID: <200006151818.LAA31278@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
alfred 2000/06/15 11:18:43 PDT
Modified files:
sys/kern uipc_socket.c uipc_socket2.c
sys/sys socket.h
Log:
add socketoptions DELAYACCEPT and HTTPACCEPT which will not allow an accept()
until the incoming connection has either data waiting or what looks like a
HTTP request header already in the socketbuffer. This ought to reduce
the context switch time and overhead for processing requests.
The initial idea and code for HTTPACCEPT came from Yahoo engineers and has
been cleaned up and a more lightweight DELAYACCEPT for non-http servers
has been added
Reviewed by: silence on hackers.
Revision Changes Path
1.75 +5 -1 src/sys/kern/uipc_socket.c
1.57 +148 -3 src/sys/kern/uipc_socket2.c
1.40 +3 -1 src/sys/sys/socket.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006151818.LAA31278>
