unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: Jim Zhan <cjzhan2000@gmail.com>
Cc: unicorn-public@bogomips.org
Subject: Re: Unicorn configuration to increase max header size
Date: Thu, 20 Nov 2014 21:59:24 +0000	[thread overview]
Message-ID: <20141120215923.GA24676@dcvr.yhbt.net> (raw)
In-Reply-To: <CAD6h1mit6Rhh=9Pi0F7OFTZC+Wg7A3uY1zdv4Cz8shrqJ6tr8w@mail.gmail.com>

Jim Zhan <cjzhan2000@gmail.com> wrote:
> We are using Unicorn as the http server for one of our ruby applications
> and we recently encountered an issue that some browsers won't limit the
> cookie size so we will get requests with http header greater than 8k and
> users are receiving "400-bad request". Is there a way to increase the
> maximum allowed header size? I searched online but didn't find a lot of
> useful information on it.

This is subject to change in the next major release, but you can
change it in unicorn 4.x using:

  Unicorn::HttpRequest.max_header_len = <number>

However, the default is already 112K, so I'm wondering if the 8K is
the result of your nginx configuration or similar.

  reply	other threads:[~2014-11-20 21:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-20 21:54 Unicorn configuration to increase max header size Jim Zhan
2014-11-20 21:59 ` Eric Wong [this message]
2014-11-20 23:35   ` Jim Zhan
2014-11-21  0:31     ` Eric Wong
2014-11-21  1:33       ` Jim Zhan
2014-11-22  3:15         ` Jim Zhan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141120215923.GA24676@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=cjzhan2000@gmail.com \
    --cc=unicorn-public@bogomips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).