Ran into an issue that I needed to set a larger proxy_buffer_size (e.g.
to
128k). It works after increasing.
However my question is: what’s the disadvantages of setting a large
buffer
size? If there is no disadvantage, why the default is only 8k? Is there
a
certain value that I certainly shouldn’t set it larger than that?
On Thu, Dec 06, 2012 at 02:06:26PM -0500, spacerobot wrote:
Ran into an issue that I needed to set a larger proxy_buffer_size (e.g. to
128k). It works after increasing.
However my question is: what’s the disadvantages of setting a large buffer
size? If there is no disadvantage, why the default is only 8k? Is there a
certain value that I certainly shouldn’t set it larger than that?
Obvious disadvantage is that it needs more memory if set to a
bigger value. It’s set to pagesize by default as it’s an amount
of memory which may be effeciently allocated, and sufficient for
most uses (which doesn’t try to abuse HTTP headers to transfer
data).
–
Maxim D.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.