nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [nifi-minifi-cpp] bakaid commented on a change in pull request #713: MINIFICPP-1119 unify win/posix sockets + clean up issues
Date Mon, 10 Feb 2020 17:07:08 GMT
bakaid commented on a change in pull request #713: MINIFICPP-1119 unify win/posix sockets +
clean up issues
URL: https://github.com/apache/nifi-minifi-cpp/pull/713#discussion_r377189692
 
 

 ##########
 File path: libminifi/src/io/ClientSocket.cpp
 ##########
 @@ -242,39 +261,35 @@ int16_t Socket::initialize() {
   addrinfo* getaddrinfo_result = nullptr;
   const int errcode = getaddrinfo(requested_hostname_.c_str(), nullptr, &hints, &getaddrinfo_result);
   if (errcode != 0) {
-    logger_->log_error("Saw error during getaddrinfo, error: %lu", WSAGetLastError());
+    logger_->log_error("Saw error during getaddrinfo, error: %s", get_last_err_str());
     return -1;
   }
   const std::unique_ptr<addrinfo, addrinfo_deleter> addr_info{ getaddrinfo_result };
   getaddrinfo_result = nullptr;
   socket_file_descriptor_ = -1;
 
 Review comment:
   We should use `INVALID_SOCKET` here as well.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message