Source release 17.1.2
This commit is contained in:
@@ -328,14 +328,13 @@ bool HttpSocket::Connect(int timeout_in_ms) {
|
||||
} else {
|
||||
if (GetError() != ERROR_ASYNC_COMPLETE) {
|
||||
// failed right away.
|
||||
LOGE("cannot connect to %s, errno = %d", domain_name_.c_str(),
|
||||
GetError());
|
||||
LOGE("cannot connect to %s, errno = %d", url().c_str(), GetError());
|
||||
CloseSocket();
|
||||
return false;
|
||||
} else {
|
||||
// in progress. block until timeout expired or connection established.
|
||||
if (!Wait(/* for_read */ false, timeout_in_ms)) {
|
||||
LOGE("cannot connect to %s", domain_name_.c_str());
|
||||
LOGE("cannot connect to %s", url().c_str());
|
||||
CloseSocket();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user