All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wido den Hollander <wido@42on.com>
To: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: RGW with Civetweb and HTTP Keep-Alive
Date: Mon, 22 Jun 2015 17:20:43 +0200	[thread overview]
Message-ID: <558827CB.50205@42on.com> (raw)

Hi,

When running Varnish in front of RGW+Civetweb you want to pipe [0]
request from Varnish to Civetweb.

Varnish will act as a simple TCP Proxy and sends a "Connecton: close"
header to the backend.

Civetweb doesn't seem to honor this query, so it doesn't send back a
"Connection: close" header in the response.

This causes a client to retry the request to Varnish, but it gets back
ad "Broken Pipe" since Varnish already closed the connection to Civetweb.

Any ideas on how we can turn this behavior of Civetweb off? With Varnish
in front I actually don't want Civetweb to do KeepAlive. Varnish talks
keepalive with my clients, but not between Varnish and Civetweb.

It's Civetweb which doesn't honor the "Connection: close" header
properly, but that might be harder to fixed.

I opened a new issue [1] where we should make it configurable if HTTP
KeepAlive is enabled for Civetweb or not.

Wido

[0]: https://www.varnish-software.com/blog/using-pipe-varnish
[1]: http://tracker.ceph.com/issues/12110
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in

                 reply	other threads:[~2015-06-22 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=558827CB.50205@42on.com \
    --to=wido@42on.com \
    --cc=ceph-devel@vger.kernel.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.