Skip Menu |
 

This queue is for tickets about the Test-RequiresInternet CPAN distribution.

Report information
The Basics
Id: 120055
Status: open
Priority: 0/
Queue: Test-RequiresInternet

People
Owner: Nobody in particular
Requestors: tlhackque [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: IPv6
Download (untitled) / with headers
text/plain 936b
I noticed a mention of this module, so looked at it for possible future use. It doesn't appear to support IPv6. It should. At a minimum, it should connect to IPv6-only sites. (A good default is ipv6.google.com.) Better, it should have options to require IPv4 connectivity, IPv6 connectivity, or either. And it would be helpful to be able to find out what address was used. (Many sites have multiple IPv4, IPv6, or a combination.) It can be useful to know what kind of connectivity is available. You can add options to the existing API by passing a hashref... Trivial test case: perl -de1 DB<1> use Test::RequiresInternet( 'ipv6.google.com' => 80 ); Minor note: the doc isn't clear on what happens when more that one host/port pair is specified. The code says "all must connect successfully"; a reasonable person might think "at least one of these must connect successfully". The latter might be a useful option...
On Tue Jan 31 17:40:00 2017, tlhackque wrote: Show quoted text
> I noticed a mention of this module, so looked at it for possible > future use. > > It doesn't appear to support IPv6. It should. > > At a minimum, it should connect to IPv6-only sites. (A good default > is ipv6.google.com.) > > Better, it should have options to require IPv4 connectivity, IPv6 > connectivity, or either. And it would be helpful to be able to find > out what address was used. (Many sites have multiple IPv4, IPv6, or a > combination.) > > It can be useful to know what kind of connectivity is available. > > You can add options to the existing API by passing a hashref... > > Trivial test case: > perl -de1 > DB<1> use Test::RequiresInternet( 'ipv6.google.com' => 80 ); > > Minor note: the doc isn't clear on what happens when more that one > host/port pair is specified. The code says "all must connect > successfully"; a reasonable person might think "at least one of these > must connect successfully". The latter might be a useful option...
Thanks for the suggestions.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.