@@ -470,8 +470,10 @@ static int client_connect(void)
fds.fd = rs;
fds.events = POLLOUT;
ret = do_poll(&fds, poll_timeout);
- if (ret)
+ if (ret) {
+ perror("rpoll");
goto close;
+ }
len = sizeof err;
ret = rgetsockopt(rs, SOL_SOCKET, SO_ERROR, &err, &len);
@@ -469,8 +469,10 @@ static int client_connect(void)
fds.fd = rs;
fds.events = POLLOUT;
ret = do_poll(&fds, poll_timeout);
- if (ret)
+ if (ret) {
+ perror("rpoll");
goto close;
+ }
len = sizeof err;
ret = rs_getsockopt(rs, SOL_SOCKET, SO_ERROR, &err, &len);
Rather than silently exiting when connection is refused by server, print error message (Connection refused) during async rconnect at client. Signed-off-by: Hal Rosenstock <hal@mellanox.com> --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html