Browse Source

Fixed error logging on TCP transport connection failed

Paul-Louis Ageneau 3 years ago
parent
commit
c3c1705f66
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/impl/tcptransport.cpp

+ 0 - 4
src/impl/tcptransport.cpp

@@ -210,10 +210,6 @@ void TcpTransport::connect(const sockaddr *addr, socklen_t addrlen) {
 					throw std::runtime_error("Failed to wait for socket connection");
 					throw std::runtime_error("Failed to wait for socket connection");
 			}
 			}
 
 
-			if (pfd[0].revents & POLLNVAL || pfd[0].revents & POLLERR) {
-				throw std::runtime_error("Error while waiting for socket connection");
-			}
-
 			if (!(pfd[0].revents & POLLOUT)) {
 			if (!(pfd[0].revents & POLLOUT)) {
 				std::ostringstream msg;
 				std::ostringstream msg;
 				msg << "TCP connection to " << node << ":" << serv << " timed out";
 				msg << "TCP connection to " << node << ":" << serv << " timed out";