# New Ticket Created by  Jonathan Stowe 
# Please include the string:  [perl #126401]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126401 >


Hi,
the background for this is in

https://github.com/sergot/http-useragent/issues/92

It presumably hasn't been picked up earlier because no-one has tested on an 
IPV6 enabled network.

It appears that if the network connection has IPV6 and the host has an AAAA 
record then IO::Socket::INET will attempt to connect first to the V6 address 
despite the family default being unchanged from PIO::SOCK_INET, if this attempt 
fails to connect (in the case in the bug report above, the server isn't 
listening on V6,) then the IPV4 isn't tried and the connection fails.

I think that for least surprise it should probably only attempt to connect on 
the socket family request, however if the V6 behaviour is to stay it should 
attempt both V6 and V4 and only fail if it isn't able to create either 
connection.

I might add I am personally not able to test on V6 just passing on a triaged 
3rd party report.

Reply via email to