We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e808d1 + 7b62888 commit d5d974bCopy full SHA for d5d974b
evpp/udp/sync_udp_client.cc
@@ -51,10 +51,10 @@ bool Client::Connect() {
51
int ret = ::connect(sockfd_, addr, addrlen);
52
53
if (ret != 0) {
54
- Close();
55
LOG_ERROR << "Failed to connect to remote "
56
<< sock::ToIPPort(&remote_addr_)
57
<< ", errno=" << errno << " " << strerror(errno);
+ Close();
58
return false;
59
}
60
0 commit comments