From 3e14261ebffc25e27d1c949109964343bd7b7467 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 10 Mar 2015 23:21:48 +0900 Subject: [PATCH] nghttpx: Setting failure mode in on_connect() may affect other backends --- src/shrpx_http_downstream_connection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_http_downstream_connection.cc b/src/shrpx_http_downstream_connection.cc index 11aa90e4..df34fffc 100644 --- a/src/shrpx_http_downstream_connection.cc +++ b/src/shrpx_http_downstream_connection.cc @@ -776,7 +776,7 @@ int HttpDownstreamConnection::on_connect() { if (LOG_ENABLED(INFO)) { DLOG(INFO, this) << "downstream connect failed"; } - connect_blocker->on_failure(); + return -1; }