|Welcome to the Monastery|
Long delay with Crypt::SSLeay and LWPby waldo22 (Novice)
|on Jul 24, 2012 at 22:17 UTC||Need Help??|
waldo22 has asked for the wisdom of the Perl Monks concerning the following question:
I just upgraded to Debian Wheezy from Lenny (long story) and a few of my Perl packages didn't make the upgrade for some reason, among them Crypt::SSLeay (libcrypt-ssleay-perl).
I was unable to connect to my credit card payment gateway (Payflow Pro) using LWP until I installed libcrypt-ssleay-perl, and now it "works", but it takes 15-20 seconds to make the SSL connection due to the very unhelpful error message "error in unknown state":
Here's a pastebin of the console from the actual request/response:
I should note that there was no delay with the previous version of LWP::UA, and that the request is clearly working, but with the unacceptable delay.
I have a feeling this has something to do with LWP changing the default behavior for certificate authorities and server certificiate verification:
The PayflowPro Perl module is using Crypt::SSLeay via LWP::useragent.
Current versions of relevant libraries are:
Obviously 15-20 seconds is way too long to wait to make an SSL connection, but without a more helpful error message, I don't know what to do.
Does anyone have any suggestions on how to better debug this or to get more verbose output?
Thanks a bunch,