Skip to content

Commit

Permalink
Fail the connection (rather than die) if SSLify fails. Resolves rt.cp…
Browse files Browse the repository at this point in the history
…an.org ticket 65069.
  • Loading branch information
rcaputo committed Jan 26, 2011
1 parent 67d5472 commit 937fe47
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/POE/Component/Client/Keepalive.pm
Expand Up @@ -586,7 +586,13 @@ sub _ka_conn_success {
unless ($ssl_available) {
die "There is no SSL support, please install POE::Component::SSLify";
}
$socket = POE::Component::SSLify::Client_SSLify ($socket);
eval {
$socket = POE::Component::SSLify::Client_SSLify($socket);
};
if ($@) {
_respond_with_error($request, "sslify", undef, "$@");
return;
}
}

$used->[USED_SOCKET] = $socket;
Expand Down

0 comments on commit 937fe47

Please sign in to comment.