File diff r25706:50b894f19d99 → r25707:226494aad20a
src/network/core/tcp_connect.cpp
Show inline comments
 
@@ -265,13 +265,13 @@ bool TCPConnecter::CheckActivity()
 
		FD_SET(socket, &write_fd);
 
	}
 

	
 
	timeval tv;
 
	tv.tv_usec = 0;
 
	tv.tv_sec = 0;
 
	int n = select(FD_SETSIZE, NULL, &write_fd, NULL, &tv);
 
	int n = select(FD_SETSIZE, nullptr, &write_fd, nullptr, &tv);
 
	/* select() failed; hopefully next try it doesn't. */
 
	if (n < 0) {
 
		/* select() normally never fails; so hopefully it works next try! */
 
		Debug(net, 1, "select() failed: {}", NetworkError::GetLast().AsString());
 
		return false;
 
	}