in reply to Re^4: Net::SSLeay::connect -> -1
in thread Net::SSLeay::connect -> -1

I admit that I've almost totally forgotten about the "random" part.... I myself have never seen timing issues (other than broken OCSP responders or certificate authorities with huge CRLs; with digicert this should not be a problem), but this is just personal experience.

There are two other questions to narrow down the problem: