nghttpx: Add logging when downstream connect is blocked by connect_blocker

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-23 00:15:38 +09:00
parent d174ffeb00
commit a0028ea8ef
1 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,10 @@ int HttpDownstreamConnection::attach_downstream(Downstream *downstream) {
auto connect_blocker = client_handler_->get_http1_connect_blocker();
if (connect_blocker->blocked()) {
if (LOG_ENABLED(INFO)) {
DCLOG(INFO, this)
<< "Downstream connection was blocked by connect_blocker";
}
return -1;
}