This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients exarkun, giampaolo.rodola, loewis, mark.dickinson, pitrou, skrah
Date 2010-06-17.00:16:07
SpamBayes Score 1.9964837e-06
Marked as misclassified No
Message-id <1276733772.23.0.55658850106.issue8857@psf.upfronthosting.co.za>
In-reply-to
Content
> FreeBSD/Qemu: ipv6 is ok, but this fails:
[...]

That failure refers to this test:

        # by specifying "http" we expect all returned sockets have
        # STREAM type
        infos = socket.getaddrinfo(HOST, "http")
        for _, socktype, _, _, _ in infos:
             self.assertEqual(socktype, socket.SOCK_STREAM)

...and means that getaddrinfo() consider UDP (socket.SOCK_DGRAM == 1) a valid transfer protocol for HTTP.
By googling around it seems this might actually be true:
http://stackoverflow.com/questions/323351/does-http-use-udp

Changing the string to "ftp" should solve the problem.
As for the IPv6 failure I added some extra code which executes the test only after verifying that binding an IPv6 socket is actually possible.

Btw, socket.has_ipv6 documentation should be more clear about the fact that having it == True doesn't necessarily mean IPv6 is actually supported.
History
Date User Action Args
2010-06-17 00:16:13giampaolo.rodolasetrecipients: + giampaolo.rodola, loewis, exarkun, mark.dickinson, pitrou, skrah
2010-06-17 00:16:12giampaolo.rodolasetmessageid: <1276733772.23.0.55658850106.issue8857@psf.upfronthosting.co.za>
2010-06-17 00:16:10giampaolo.rodolalinkissue8857 messages
2010-06-17 00:16:09giampaolo.rodolacreate