Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / 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
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?


> $ time curl localhost:8080/ping -vv


> * 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 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:

  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 \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Rainbows! Rack HTTP server user/dev discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhbt.net/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 rainbows-public rainbows-public/ https://yhbt.net/rainbows-public \
		rainbows-public@yhbt.net rainbows-public@bogomips.org rainbows-talk@rubyforge.org rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
	public-inbox-index rainbows-public

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git