Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Long delay with Crypt::SSLeay and LWP

by Anonymous Monk
on Jul 25, 2012 at 06:58 UTC ( #983558=note: print w/replies, xml ) Need Help??

in reply to Long delay with Crypt::SSLeay and LWP

Try Net::SSLeay on for size :)
#!/usr/bin/perl -- use LWP::Simple ; use IO::Socket::SSL qw(debug3); get( q{} ); __END__ DEBUG: .../IO/Socket/ new ctx 18240320 DEBUG: .../IO/Socket/ socket not yet connected DEBUG: .../IO/Socket/ socket connected DEBUG: .../IO/Socket/ ssl handshake not started DEBUG: .../IO/Socket/ ok=1 cert=18273264 DEBUG: .../IO/Socket/ ok=1 cert=18997536 DEBUG: .../IO/Socket/ ok=1 cert=18245888 DEBUG: .../IO/Socket/ scheme=www cert=18245888 DEBUG: .../IO/Socket/ + alt=2 DEBUG: .../IO/Socket/ Net::SSLeay::connect -> 1 DEBUG: .../IO/Socket/ ssl handshake done DEBUG: .../IO/Socket/ free ctx 18240320 open=18240320 DEBUG: .../IO/Socket/ free ctx 18240320 callback DEBUG: .../IO/Socket/ OK free ctx 18240320

Replies are listed 'Best First'.
Re^2: Long delay with Crypt::SSLeay and LWP
by waldo22 (Novice) on Jul 25, 2012 at 19:51 UTC

    Thanks for the tip. That produced slightly more helpful output. Does this mean anything to you?

    DEBUG: .../IO/Socket/ set domain to 2 DEBUG: .../IO/Socket/ new ctx 33610976 DEBUG: .../IO/Socket/ socket not yet connected DEBUG: .../IO/Socket/ socket connected DEBUG: .../IO/Socket/ ssl handshake not started (long pause again - at least 30 sec.) DEBUG: .../IO/Socket/ Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/ SSL connect attempt failed with unkn +own error error:00000000:lib(0):func(0):reason(0) DEBUG: .../IO/Socket/ fatal SSL error: SSL connect attempt +failed with unknown error error:00000000:lib(0):func(0):reason(0) DEBUG: .../IO/Socket/ IO::Socket::INET6 configuration fail +ed error:00000000:lib(0):func(0):reason(0) DEBUG: .../IO/Socket/ free ctx 33610976 open=33610976 DEBUG: .../IO/Socket/ OK free ctx 33610976

      Does this mean anything to you?

      :) Not particularly, though it hints to me the problem likely isn't perl specific -- you can probably confirm this hunch by running openssl ... see Debugging SSL communications

        Thanks for the great tip about debugging SSL.

        You're correct, this is not a Perl problem.

        Same delays when running the s_client test directly from OpenSSL.

        The same test connects just fine to the gateway, so I'm taking this up with the Payflow development support folks now.

        I'll report back just in case someone else has this problem, but as of now, it looks like it's related to certificate validation, or to Payflow's servers, or something

        It's a shame the secular community isn't this helpful ;)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://983558]
[haukex]: Corion: Yes exactly, in the author tests I don't worry about portability as much, I also don't list the author tests' dependencies in Makefile.PL
[haukex]: I figure someone who wants to contribute will know how to install the missing modules ;-) Not the nicest way to go but I don't think many people are using my modules yet
[ambrus]: Corion: some of these stupid syntax highlighters assume that too. just look at the table in http://perldoc. functions/pack. html for example.
[haukex]: ..."yet" ;-) I haven't had to deal with Dist::Zilla yet but I've heard about how it's a big setup

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-02-27 12:39 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.