Better error messages while connecting to proxy.

GitOrigin-RevId: 25937285e2f3ee499f3335081f377ba584dcf068
This commit is contained in:
levlam 2018-12-07 12:25:22 +03:00
parent 7072b0319d
commit ccf77c5e01
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,8 @@ Status HttpProxy::wait_connect_response() {
size_t len = min(sizeof(buf), it.size());
it.advance(len, MutableSlice{buf, sizeof(buf)});
VLOG(proxy) << "Failed to connect: " << format::escaped(Slice(buf, len));
return Status::Error("Failed to connect");
return Status::Error(PSLICE() << "Failed to connect to " << ip_address_.get_ip_str() << ':'
<< ip_address_.get_port());
}
size_t total_size = 12;

View File

@ -76,7 +76,7 @@ void TransparentProxy::loop() {
}
void TransparentProxy::timeout_expired() {
on_error(Status::Error("Timeout expired"));
on_error(Status::Error("Connection timeout expired"));
}
} // namespace td