Better error messages while connecting to proxy.
GitOrigin-RevId: 25937285e2f3ee499f3335081f377ba584dcf068
This commit is contained in:
parent
7072b0319d
commit
ccf77c5e01
@ -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;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user