X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/e9d4ab8849c465e766a494765b29e26564f284d0..cc3e685d09b2095099fc396157d19172ab3ef7c4:/contimeout.diff diff --git a/contimeout.diff b/contimeout.diff deleted file mode 100644 index f8cc519..0000000 --- a/contimeout.diff +++ /dev/null @@ -1,108 +0,0 @@ -This patch adds a connection timeout option, --contimeout. - -To use this patch, run these commands for a successful build: - - patch -p1 ai_addr, res->ai_addrlen) < 0) { -+ if (connect_timeout > 0) { -+ SIGACTION(SIGALRM, contimeout_handler); -+ alarm(connect_timeout); -+ } -+ -+ while (connect(s, res->ai_addr, res->ai_addrlen) < 0) { -+ if (connect_timeout < 0) -+ exit_cleanup(RERR_CONTIMEOUT); -+ if (errno == EINTR) -+ continue; - close(s); - s = -1; -- continue; -+ break; - } -+ -+ if (connect_timeout > 0) -+ alarm(0); -+ -+ if (s < 0) -+ continue; -+ - if (proxied - && establish_proxy_connection(s, host, port, - proxy_user, proxy_pass) != 0) {