Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2000 18:32:48 -0700
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Alfred Perlstein <alfred@FreeBSD.org>
Cc:        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
Message-ID:  <20000616183248.30858@hydrogen.funkthat.com>
In-Reply-To: <200006151818.LAA31278@freefall.freebsd.org>; from Alfred Perlstein on Thu, Jun 15, 2000 at 11:18:43AM -0700
References:  <200006151818.LAA31278@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein scribbled this message on Jun 15:
>   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.

I would like to say that there was a misunderstanding on mine (and
probably many other people's idea of what this does...  first of, it
just doesn't look for ^(GET|POST).*$ like I thought it did..  it actually
checkes if it starts w/ (GET|POST) and then checks the end of the
buffer for '\n\n' or '\n\r\n' which all http headers must end with...

now this feature is definately a lot more useful than a simple
`^(GET|POST).*$' which I think most people assumed (including myself)...
I just did a test and the headers through a proxy will be at least 400
bytes long.. if you through in a few cookies and you easily go over the
basic MTU of 576...

Most people objected to the change because of the architecture of the
change isn't acceptable to FreeBSD usual standards...  it also turns
out that once I found out about what it really does, there was a bug
that would break HTTP/0.9 requests...

I completely agree w/ jlemon that this should be done through the
future kfilter part of kq...

I am glad that a dynamic method of choosing the filter was decided
upon, and will be implemented...

-- 
  John-Mark Gurney				Voice: +1 408 975 9651
  Cu Networking
	"Thank God I'm an atheist, that'd just be confusing." -- cmc


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?20000616183248.30858>