Re: How to buffer a POST request

From: Mikko Kettunen <dawni_at_kymppi.org>
Date: Wed, 11 Jun 2008 12:51:37 +0300

Henrik Nordstrom wrote:
> On tis, 2008-06-10 at 12:40 +0300, Mikko Kettunen wrote:
>> How could I configure squid to buffer whole POST-request before sending
>> it to peer cache or originserver?
> Good question. It isn't really designed to do this. POST request may be
> almost unbounded in size, and some streaming over HTTP protocols (i.e.
> RSTP over HTTP) relies on it not being buffered..

>> Which functions handle the request buffering?
> We don't.. but yes there is a temporary buffer of limited size, used for
> buffering request headers and data until it can be sent to the server.

Yes, I read something about this on squid-users list, there seems to be
8kB buffer for this if I understood right.

> How big are these requests that you need to buffer?

They should be around 10-100k, but sometimes they can increase up to one
megabyte which is the absolute maximum. This shouldn't be happening too
often though.

BR,
Mikko
Received on Wed Jun 11 2008 - 09:51:45 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 11 2008 - 12:00:05 MDT