lbrandewie has asked for the wisdom of the Perl Monks concerning the following question:
Hey Folks,
I've been using code like the following:
use LWP; use strict; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get("https://cnn.com/"); if ($response->is_success) { print "Yay!"; # process success } else { print "Rats!"; # process failure }
to retrieve documents off the internet. The problem comes when you try to retrieve an https document. You get neither a success nor a fail indication, but rather a fatal library error:
Free to wrong pool 2f5840 not 8900000f60944183 at C:/Perl64/lib/IO/Soc +ket/SSL.pm line 2739.
I contacted Activestate and they acknowledge that it's their bug. They say that versions of Net-SSLeay prior to 1.85 are not thread safe, and this is the reason for the crash.
You can check the following link to see when Net-SSLeay gets upgraded:
https://platform.activestate.com/ActiveState/ActivePerl-5.28/customize
Thanks,
Lars
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net-SSLeay problem in perl for Windows
by syphilis (Archbishop) on Dec 18, 2019 at 02:38 UTC | |
by cavac (Prior) on Dec 18, 2019 at 16:24 UTC | |
by lbrandewie (Acolyte) on Dec 19, 2019 at 21:51 UTC | |
by lbrandewie (Acolyte) on Dec 20, 2019 at 00:11 UTC | |
by syphilis (Archbishop) on Dec 20, 2019 at 02:27 UTC | |
by Anonymous Monk on Dec 20, 2019 at 09:43 UTC | |
| |
by Anonymous Monk on Dec 20, 2019 at 10:16 UTC | |
|
Re: Net-SSLeay problem in perl for Windows
by bliako (Abbot) on Dec 17, 2019 at 21:30 UTC | |
by lbrandewie (Acolyte) on Dec 18, 2019 at 00:32 UTC |