From: Eric Wong <e@80x24.org>
To: John Smart <smartj@gmail.com>
Cc: unicorn-public@bogomips.org
Subject: Re: Rack::Request#params EOFError
Date: Sun, 26 Mar 2017 20:52:04 +0000 [thread overview]
Message-ID: <20170326205204.GA25168@starla> (raw)
In-Reply-To: <20170321190639.GA13849@whir>
> John Smart <smartj@gmail.com> wrote:
> > When multipart > 112KB, I noticed that Unicorn tees the input stream
> > to a temporary file. I was wondering: might Unicorn::TeeInput raise
> > an EOFError as part of normal operation when reaching the end of the
> > input stream? If so, this would break the Rack spec. I only tested
> > this on Darwin, still working on a self-contained repro.
Ping on this.
Eric Wong <e@80x24.org> wrote:
> No, it should not raise EOFError unless a client sent less than
> the Content-Length it declared in the header, or if it sent a
> short chunk with "Transfer-Encoding: chunked".
>
> EOFError should be raised to break out of the application
> processing entirely if and only if the client decides to disconnect
> prematurely. This is needed to allow unicorn to move onto other
> clients.
>
> What unicorn could (and maybe should) do is raise a different
> error which is not a subclass of EOFError; to prevent the error
> from being caught by Rack (or any other middlewares).
I'm still considering this, but I'm also wondering if it'll
break any existing code which relies on Unicorn::ClientShutdown
being a subclass of EOFError
> What client are you using?
>
> Is it sending "Transfer-Encoding: chunked" or a Content-Length?
>
> Is nginx in front of unicorn? If not, does it happen when nginx
> is in front of unicorn?
prev parent reply other threads:[~2017-03-26 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 18:44 Rack::Request#params EOFError John Smart
2017-03-21 19:06 ` Eric Wong
2017-03-26 20:52 ` Eric Wong [this message]
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=20170326205204.GA25168@starla \
--to=e@80x24.org \
--cc=smartj@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).