Re: saving web page body to file... help needed

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 18 Jan 2007 11:20:29 +0100

ons 2007-01-17 klockan 21:16 -0800 skrev Siddhesh PaiRaikar:

> ok from this.. i just need to know 1 thing then.... doesnt squid
> temporarily buffer the body at all before it sends it to the client ?

Of course it temporarily buffers some of the body while copying data
from the server connection to the client connection, but not all. It
first buffers the headers, and as soon as the complete headers have been
seen it sends them to the client, it then reads the response body piece
by piece, buffers it internally in the cache and immediately sends a
copy out to the client.

In Squid-2 the best places for seeing this data is perhaps storeAppend()
which receives all incoming data (including headers), or
clientSendMoreData() which sends the body of the response out to the
client.

Regards
Henrik

Received on Thu Jan 18 2007 - 03:20:39 MST

This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:02 MST