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


In reply to Net-SSLeay problem in perl for Windows by lbrandewie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.