From ac1cc56fbb0a88a0913f54abdc3e9d7b286672fc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 22 Jan 2015 21:13:34 +0900 Subject: [PATCH] nghttpx: Stop wev_ on h1 backend connect failure --- 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 d340ac93..281288e1 100644 --- a/src/shrpx_http_downstream_connection.cc +++ b/src/shrpx_http_downstream_connection.cc @@ -750,6 +750,8 @@ end: int HttpDownstreamConnection::on_connect() { if (!util::check_socket_connected(fd_)) { + ev_io_stop(loop_, &wev_); + if (LOG_ENABLED(INFO)) { DLOG(INFO, this) << "downstream connect failed"; }