Closed GwenDragon closed 3 weeks ago
I can't easily replicate this. Does the information on fallbacks here point to a reasonable solution? https://metacpan.org/pod/IO::Socket::SSL#Description-Of-Methods
Let us wait what Steffen says about the issue.
Seems to be unfixable as IO::Socket has no fallback.
If fetching content with lwp-request or GET (the perl script) and the remote server has IPv6 and IPv4, but IPv6 is not reachable, lwp-request dies with error message "500 Can't connect to gwendragon.de:443 (Bad address)" Expected is like wget or curl that LWP connect is tried on IPv6 and IPv4. The Socket error message does not really point to the issue and makes it hard to use lwp-request as command line tool.
I checked the problem with a own program.
test case
With
use IO::Socket::SSL qw/debug3/;
output gives: DEBUG: .../IO/Socket/SSL.pm:3020: new ctx 2719281884640 DEBUG: .../IO/Socket/SSL.pm:705: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:705: socket not yet connected DEBUG: .../lib/Net/HTTPS.pm:67: local error: IO::Socket::IP configuration failed DEBUG: .../IO/Socket/SSL.pm:3069: free ctx 2719281884640 open=2719281884640 DEBUG: .../IO/Socket/SSL.pm:3073: free ctx 2719281884640 callback DEBUG: .../IO/Socket/SSL.pm:3080: OK free ctx 2719281884640 500 Can't connect to gwendragon.de:443 (Bad address)Environment
Windows 11 23H2 StrawberryPerl 5.36.3.1 x64 libwww-perl-6.77 LWP-Protocol-https-6.14 Net-SSLeay-1.94 Net-SSLGlue-1.058 Crypt-SSLeay-0.72