Make Net::SSL required for FSP plugin - Line #37

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-01-15 15:29:42 +00:00
parent 46d3c9d7c7
commit d24ce878e0

View File

@ -21,6 +21,26 @@ sub handled_commands {
# Process request from xCat daemon
##########################################################################
sub process_request {
#######################################################
# IO::Socket::SSL apparently does not work with LWP.pm
# When used, POST/GETs return immediately with:
# 500 Can't connect to <nodename>:443 (Timeout)
#
# Net::HTTPS, used by LWP::Protocol::https::Socket,
# uses either IO::Socket::SSL or Net::SSL. It chooses
# by looking to see if $IO::Socket::SSL::VERSION
# is defined (i.e. the module's already loaded) and
# uses that if so. If not, it first tries Net::SSL,
# then IO::Socket::SSL only if that cannot be loaded.
#######################################################
eval { require Net::SSL };
if ( $@ ) {
my $callback = $_[1];
$callback->( {data=>[$@]} );
return(1);
}
$IO::Socket::SSL::VERSION = undef;
xCAT::PPC::process_request(__PACKAGE__,@_);
}