Message107968
> 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. |
|
Date |
User |
Action |
Args |
2010-06-17 00:16:13 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, loewis, exarkun, mark.dickinson, pitrou, skrah |
2010-06-17 00:16:12 | giampaolo.rodola | set | messageid: <1276733772.23.0.55658850106.issue8857@psf.upfronthosting.co.za> |
2010-06-17 00:16:10 | giampaolo.rodola | link | issue8857 messages |
2010-06-17 00:16:09 | giampaolo.rodola | create | |
|