jonadab has asked for the wisdom of the Perl Monks concerning the following question:
$d = HTTP::Daemon::SSL->new( LocalPort => $bkportnum, LocalAddr => '10.0.0.1', ) or carp("Unable to create new HTTP::Daemon::SSL object" . Dumper(+{ port => $bkportnum, strbang => $!, SSL_ERROR => $SSL_ERROR, retval => $d, strat => $@, }) . ".");
This used to work just fine. Then it stopped working, and there's no error message. $! and $@ are both empty strings, and $d and $SSL_ERROR are both undef.
Is there a good way to debug something like this, other than by ripping out HTTP::Daemon::SSL and replacing it with an entirely different module?
And if I did want to replace it with a different module (say, with one that produces error messages when appropriate), does anybody have a recommendation?
Update: I ended up throwing the whole thing out and using Net::OpenSSH instead, making the problem moot and also nicely circumventing the need to listen on an extra port into the bargain.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to debug failure in HTTP::Daemon::SSL->new()
by zentara (Archbishop) on Apr 26, 2014 at 14:48 UTC | |
Re: How to debug failure in HTTP::Daemon::SSL->new()
by Anonymous Monk on Apr 25, 2014 at 22:24 UTC | |
by eye (Chaplain) on Apr 26, 2014 at 15:51 UTC | |
by jonadab (Parson) on Apr 28, 2014 at 18:33 UTC | |
by jonadab (Parson) on Apr 28, 2014 at 17:18 UTC | |
by Anonymous Monk on Apr 28, 2014 at 19:05 UTC | |
by jonadab (Parson) on Apr 29, 2014 at 17:17 UTC | |
Re: How to debug failure in HTTP::Daemon::SSL->new()
by karlgoethebier (Abbot) on Apr 26, 2014 at 10:26 UTC |
Back to
Seekers of Perl Wisdom