From: Bosko Milekic <bosko.milekic@gmail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: Re: RQFR: multipart bug
Date: Tue, 8 Dec 2009 21:55:47 -0800 (PST) [thread overview]
Message-ID: <1f03994d-cf83-4f3f-af03-d1eb64565191@b15g2000yqd.googlegroups.com> (raw)
In-Reply-To: <ca760265-c9d7-4d9c-8a8c-6f4af62e6f4b@p19g2000vbq.googlegroups.com>
On Nov 11, 3:53 pm, Bosko Milekic <bosko.mile...@gmail.com> wrote:
> On Nov 6, 1:01 pm, Christian Neukirchen <chneukirc...@gmail.com>
> wrote:
>
> > > Introduce failing test case for multipart parser when it slices
> > > exactly on a boundary and patch multipart parser so it passes it -
> > > the failing test case comes with a sample payload specific to the
> > > fact that the default bufsize used by the multipart parser is
> > > exactly 16384. should this default be changed, the test will no
> > > longer apply.
>
> >http://github.com/bloom/rack/commit/8f4bfced74e7a07d0f0f47705b763c7ef...
>
> Obviously I'll +1 here, but I'm clearly biased. :-)
>
> In all honesty, though, I think the "correct" thing to do is rewrite
> the multi-parser method, which is really non obvious and not exactly
> what one would call idiomatic ruby, but since this is much easier said
> than done, I'm all for patching the edge case. Took a while to
> isolate this, especially since only Safari was sending payloads that
> happened to, in very specific and isolated cases, fall exactly on the
> end of the boundary at the 16384 byte offset.
>
> Best,
> Bosko
FWIW:
Feel free to pull bloom/rack. gdi contributed a cleaner fix and tests
and we've been running this in production for a month now.
Best,
Bosko
prev parent reply other threads:[~2009-12-09 5:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 18:01 RQFR: multipart bug Christian Neukirchen
2009-11-11 20:53 ` Bosko Milekic
2009-12-09 5:55 ` Bosko Milekic [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-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://groups.google.com/group/rack-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f03994d-cf83-4f3f-af03-d1eb64565191@b15g2000yqd.googlegroups.com \
--to=rack-devel@googlegroups.com \
/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.
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).