From owner-cvs-all Thu Jun 15 20:29:52 2000 Delivered-To: cvs-all@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id D758137BB89; Thu, 15 Jun 2000 20:29:42 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p41-dn01kiryunisiki.gunma.ocn.ne.jp [211.0.245.42]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id MAA05490; Fri, 16 Jun 2000 12:29:38 +0900 (JST) Message-ID: <39499E16.9FE731F7@newsguy.com> Date: Fri, 16 Jun 2000 12:25:10 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Alfred Perlstein Cc: Nate Williams , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern uipc_socket.c uipc_socket2.c src/sys/sys socket.h References: <200006151818.LAA31278@freefall.freebsd.org> <200006151845.MAA25472@nomad.yogotech.com> <20000615120807.M18462@fw.wintelcom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > > * Nate Williams [000615 11:46] wrote: > > > 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. > > > > Huh? I never saw this. I object to adding application specific code > > inside the kernel. > > It's not really a signifigant amount of code if you look at the > delta, the performance difference is signifigant though. > You'll be happy when I release my http server that uses this. He won't. HTTP belongs to userland. We should no more add support to HTTP than we should add support to the dozens of different userland streaming protocols in existance. Alas, I pretty much ignored all that hackers discussion on the grounds that nothing called "kblob" could possibly be important. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.great.underground.bsdconpiracy.org "He is my minion, so he doesn't need a name." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message