Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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]
[Eily]: you should use DC instead, less variation
[Discipulus]: surprisingly i put ADCD in this precise moment!
[GotToBTru]: ACDC can provide some clarity at times

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-06-26 11:37 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (577 votes). Check out past polls.