From 6d1079930191ea53cf1637ec624fecdc5fecddba Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 15 Jul 2015 19:46:48 +0900 Subject: [PATCH] nghttpx: Don't pool failed HTTP/1 backend connection --- src/shrpx_http_downstream_connection.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shrpx_http_downstream_connection.cc b/src/shrpx_http_downstream_connection.cc index a69357a5..af16ba24 100644 --- a/src/shrpx_http_downstream_connection.cc +++ b/src/shrpx_http_downstream_connection.cc @@ -864,6 +864,8 @@ int HttpDownstreamConnection::on_connect() { DLOG(INFO, this) << "downstream connect failed"; } + downstream_->set_request_state(Downstream::CONNECT_FAIL); + return -1; }