nghttpx: Call downstream_failure rather than on_failure in HTTP/1 backend

This commit is contained in:
Tatsuhiro Tsujikawa 2016-05-21 10:34:47 +09:00
parent e99f3c58f7
commit e6dfd4ff27
1 changed files with 2 additions and 1 deletions

View File

@ -220,7 +220,8 @@ int HttpDownstreamConnection::attach_downstream(Downstream *downstream) {
<< util::to_numeric_addr(&addr.addr)
<< ", errno=" << error;
connect_blocker->on_failure();
downstream_failure(&addr);
close(conn_.fd);
conn_.fd = -1;