Date: Sun, 03 Jul 2005 01:26:07 -0000 From: Kelly Yancey <kbyanc@posi.net> To: Pawel Worach <pawel.worach@telia.com> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org, Colin Percival <cperciva@freebsd.org>, Kelly Yancey <kbyanc@freebsd.org> Subject: Re: cvs commit: src/lib/libfetch http.c Message-ID: <20050221150749.L1802@gateway.posi.net> In-Reply-To: <4216C84D.2010903@telia.com> References: <200502160022.j1G0MK3P059683@repoman.freebsd.org> <42166EAA.2060001@telia.com> <42167133.9030207@freebsd.org> <42167415.6060608@telia.com> <20050218190716.S35160@gateway.posi.net> <4216C84D.2010903@telia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 19 Feb 2005, Pawel Worach wrote: > Kelly Yancey wrote: > > On Sat, 19 Feb 2005, Pawel Worach wrote: > > > [ tcpdump output snipped ] > > > > > >>Solaris box is: SunOS proxy 5.9 Generic_112233-12 sun4u sparc SUNW,Ultra-4 > >>FreeBSD box is: FreeBSD client 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Wed Feb 16 > >>14:39:08 CET 2005 > >>Squid is: Squid Cache: Version 2.5.STABLE6-20041001 > >> > >>Both machines are connected to the same switch and are on the same subnet. > >> > > > > > > I don't suppose you have half_closed_clients set to off in your squid > > config? > > Yes I do. This proxy has 4500-5000 unique clients and now only fetch(1) has a > problem with it :) > The issue then isn't the TCP_NOPUSH, but rather the call to shutdown(2). There is no reason to disallow half-closed TCP connections from talking to your proxy, in fact squid defaults to allowing them. Nonetheless, I've been testing an updated diff which replaces the call to shutdown(2) with setting the TCP_NODELAY socket option and clearing the TCP_NOPUSH option instead. This appears to be sufficient to force the pending request to be sent without closing the client half of the TCP connection. I'll post the diff to -net shortly. Kelly -- Kelly Yancey - kbyanc@{posi.net,FreeBSD.org} - kelly@nttmcl.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050221150749.L1802>