DO NOT REPLY [Bug 6588] New: errors missed when connecting to host with multiple addresses and host is down

samba-bugs at samba.org samba-bugs at samba.org
Wed Jul 29 13:01:25 MDT 2009


https://bugzilla.samba.org/show_bug.cgi?id=6588

           Summary: errors missed when connecting to host with multiple
                    addresses and host is down
           Product: rsync
           Version: 3.0.6
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: arekm at maven.pl
         QAContact: rsync-qa at samba.org


I'm rsyncing from a IPv4 only machine to a machine with two addresses, one IPv4
and one IPv6 visible in DNS.

When destination machine is down then I get this error:
rsync: failed to connect to buildlogs.pld-linux.org: Address family not
supported by protocol (97)
rsync error: error in socket IO (code 10) at clientserver.c(122) [sender=3.0.3]

so some errors were ignored instead of printing them.

How to reproduce, from ipv4 only machine, with ipv6 capable rsync and
getaddrinfo() run:

rsync /dev/null rsync://carme.pld-linux.org

which will end with:

rsync: failed to connect to carme.pld-linux.org: Address family not supported
by protocol (97)

while the missed error was:
16614 connect(3, {sa_family=AF_INET, sin_port=htons(2323),
sin_addr=inet_addr("193.239.45.140")}, 16) = -1 ECONNREFUSED (Connection
refused)

Maybe rsync should print all errors it encounters when connecting iif
connection fails?


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list