Re: Your opinion on a http accelerator

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 18 Jan 2000 00:39:26 +0100

Scott Hess wrote:

> The SendBufferSize directive in combination with SO_LINGER accomplish the
> same effect, without involving Squid.

Not quite. I was tempted to answer with this on the original question,
but no SO_LINGER and the graceful shutdown performed by Apache or Squid
isn't the same thing. The graceful shutdown is to avoid TCP resets in
case the client tries to send more requests on the same connection.
SO_LINGER will not give you this. It the client sends a single byte
after you have closed the connection then they will most likely lose
most of the page being delivered due to TCP reset.

Also it does not allow the use of persistent connection. Squid can act
as a multiplexer from many client connections to a few Apache
connections.

> Part of the reason I didn't find a big Squid win was that Squid only
> buffers a certain amount of data. This does extend your buffer size,
> because you have Squid's send buffer plus Squid's internal buffer plus
> Squid's receive buffer plus Apache's send buffer (call it 4*16k==64k), but
> all of that is a really inefficient way to add buffer space!

Agreed, but it is more to it than only buffer space.

--
Henrik Nordstrom
Squid hacker
Received on Mon Jan 17 2000 - 18:20:05 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:27 MST