I'm using a trio of thins as the back end to an application with nginx
as the front end. In the current operation of the application we
perform GET and POST operations with large http headers. The nginx
default header size is 4KB, but this is resettable through the
large_client_header_buffers directive, where 64KB seems to be the
limit.
I have nginx on the front end set to the 64K max. When passing data
back to thin, I get an
!! Invalid request
error. It appears that the max http header size is set in thin to
8KB (as I get the error when I exceed this size). Is this correct,
and is there any way to set the max header size to be larger?
On Wed, May 7, 2008 at 2:13 PM, John Repko <jkre...@gmail.com> wrote:
> I'm using a trio of thins as the back end to an application with nginx > as the front end. In the current operation of the application we > perform GET and POST operations with large http headers. The nginx > default header size is 4KB, but this is resettable through the > large_client_header_buffers directive, where 64KB seems to be the > limit.
> I have nginx on the front end set to the 64K max. When passing data > back to thin, I get an
> !! Invalid request
> error. It appears that the max http header size is set in thin to > 8KB (as I get the error when I exceed this size). Is this correct, > and is there any way to set the max header size to be larger?
The header size limit is 112K. If your request was rejected because
the header was too big you'd get: "Header longer than allowed" as an
error message.
> Thin should be no more or less strict than Mongrel. Does this work with Mongrel?
> On Wed, May 7, 2008 at 2:13 PM, John Repko <jkre...@gmail.com> wrote:
> > I'm using a trio of thins as the back end to an application with nginx
> > as the front end. In the current operation of the application we
> > perform GET and POST operations with large http headers. The nginx
> > default header size is 4KB, but this is resettable through the
> > large_client_header_buffers directive, where 64KB seems to be the
> > limit.
> > I have nginx on the front end set to the 64K max. When passing data
> > back to thin, I get an
> > !! Invalid request
> > error. It appears that the max http header size is set in thin to
> > 8KB (as I get the error when I exceed this size). Is this correct,
> > and is there any way to set the max header size to be larger?