Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: Damian Janowski <jano@dimaion.com>
Cc: rainbows-public@bogomips.org
Subject: Re: Slow response with HTTP 1.1?
Date: Fri, 4 Jul 2014 19:50:33 +0000	[thread overview]
Message-ID: <20140704195032.GA13152@dcvr.yhbt.net> (raw)
In-Reply-To: <CABAijKGO+TN7=Ls+xsB+DW2B-jsFNMMx4iAtF0UO3ZCDP1coMQ@mail.gmail.com>

Damian Janowski <jano@dimaion.com> wrote:
> Hi,
> 
> I'm seeing very slow (or time outs, depending on the client) for
> requests made over HTTP 1.1. If I force curl to use HTTP 1.0,
> everything works quickly.
> 
> The behavior is consistent over curl or when using Rainbows behind Varnish.
> 
> Any ideas?

<snip>

> $ time curl localhost:8080/ping -vv

<snip>

> * HTTP 1.1 or later with persistent connection, pipelining supported
> < HTTP/1.1 200 OK
> < Date: Fri, 04 Jul 2014 15:02:47 GMT
> < Status: 200 OK
> < Content-Type: text/plain; charset=UTF-8
> < Connection: keep-alive
> * no chunk, no close, no size. Assume close to signal end

Your app is missing the Rack::ContentLength (and Rack::Chunked)
middlewares.  This is mentioned at the bottom of the manpage[1],
but I suspect it might be necessary to add a FAQ entry.

[1] http://rainbows.bogomips.org/rainbows.1.html

  reply	other threads:[~2014-07-04 19:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-04 15:18 Slow response with HTTP 1.1? Damian Janowski
2014-07-04 19:50 ` Eric Wong [this message]
2014-07-06 17:02   ` Damian Janowski

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/rainbows/

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

  git send-email \
    --in-reply-to=20140704195032.GA13152@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=jano@dimaion.com \
    --cc=rainbows-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/rainbows.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).