Displaying 1 result from an estimated 1 matches for "connect_done".
Did you mean:
connect_conf
2004 Sep 03
1
rsync 2.6.2 with Posix socket on HP-UX
...fails with daemon mode tests but with
the different error message.
rsync: socketpair_tcp failed (Bad file number)
I check the source socket.c and found two problems.
Actual error occurs at the second connect() in
socketpair_tcp() (line 737) and the errno is EINPROGRESS.
close(listener);
if (connect_done == 0) {
>>> if (connect(fd[1], (struct sockaddr *)&sock, sizeof sock) != 0
&& errno != EISCONN)
goto failed;
}
set_blocking(fd[1]);
Then it hits "goto failed" and there "listener" is closed
as it is not -1 and fails. This overrides the errno t...