Subject: | die when ssl error occure |
when i check some strange domain my sript died with error ssl connect
It's occur because in the package POE::Component::SSLify::ClientHandle
used die.
my $resp = Net::SSLeay::connect( $ssl ) or die_if_ssl_error( 'ssl
connect' );
It's invoked from POE::Component::Client::Keepalive.pm
$socket = POE::Component::SSLify::Client_SSLify($socket);#line 586
May be should wrap Client_SSLify into eval?
eval {
$socket = POE::Component::SSLify::Client_SSLify ($socket);
};
if ($@) {
#process error (call _ka_conn_failure - for example)
...
}