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

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{https://pilot-payflowpro.paypal.com/} ); __END__ DEBUG: .../IO/Socket/SSL.pm:1567: new ctx 18240320 DEBUG: .../IO/Socket/SSL.pm:334: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:336: socket connected DEBUG: .../IO/Socket/SSL.pm:354: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:1555: ok=1 cert=18273264 DEBUG: .../IO/Socket/SSL.pm:1555: ok=1 cert=18997536 DEBUG: .../IO/Socket/SSL.pm:1555: ok=1 cert=18245888 DEBUG: .../IO/Socket/SSL.pm:1170: scheme=www cert=18245888 DEBUG: .../IO/Socket/SSL.pm:1177: identity=pilot-payflowpro.paypal.com + cn=pilot-payflowpro.paypal.com alt=2 pilot-payflowpro.paypal.com DEBUG: .../IO/Socket/SSL.pm:414: Net::SSLeay::connect -> 1 DEBUG: .../IO/Socket/SSL.pm:469: ssl handshake done DEBUG: .../IO/Socket/SSL.pm:1604: free ctx 18240320 open=18240320 DEBUG: .../IO/Socket/SSL.pm:1609: free ctx 18240320 callback DEBUG: .../IO/Socket/SSL.pm:1612: 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/SSL.pm:196: set domain to 2 DEBUG: .../IO/Socket/SSL.pm:1622: new ctx 33610976 DEBUG: .../IO/Socket/SSL.pm:339: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:341: socket connected DEBUG: .../IO/Socket/SSL.pm:359: ssl handshake not started (long pause again - at least 30 sec.) DEBUG: .../IO/Socket/SSL.pm:422: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:1299: SSL connect attempt failed with unkn +own error error:00000000:lib(0):func(0):reason(0) DEBUG: .../IO/Socket/SSL.pm:428: fatal SSL error: SSL connect attempt +failed with unknown error error:00000000:lib(0):func(0):reason(0) DEBUG: .../IO/Socket/SSL.pm:1299: IO::Socket::INET6 configuration fail +ed error:00000000:lib(0):func(0):reason(0) DEBUG: .../IO/Socket/SSL.pm:1659: free ctx 33610976 open=33610976 DEBUG: .../IO/Socket/SSL.pm:1667: 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 Authorize.net 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://983558]
help
Chatterbox?
[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. perl.org/ 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
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.