libwww-perl / libwww-perl/Net-HTTP
Can't decide a runtime if I need to use SSL [rt.cpan.org #83024]
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 20
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
Migrated from rt.cpan.org#83024 (status was 'new')
Requestors:
- victor@vsespb.ru
From victor@vsespb.ru on 2013-01-29 10:15:13:
I am getting
Can't locate object method "configure" via package "Net::HTTPS" at
/usr/local/share/perl/5.10.1/Net/HTTPS.pm
if I specify
"$Net::HTTPS::SSL_SOCKET_CLASS = "IO::Socket::SSL";"
but don't require/use IO::Socket::SSL
if I require IO::Socket::SSL somewhere in conditional block, I am getting
lot's of weird errors like
IO::Socket::SSL::BEGIN(/usr/local/lib/perl/5.10.1/Net/SSLeay.pm:0)
(eval)(/usr/local/share/perl/5.10.1/IO/Socket/SSL.pm:18)
(eval)(/usr/local/lib/perl/5.10.1/Net/SSLeay.pm:367)
XSLoader::load(/usr/local/lib/perl/5.10.1/Net/SSLeay.pm:365)
(eval)(/usr/lib/perl/5.10/XSLoader.pm:94)
main::__ANON__(/usr/lib/perl/5.10/XSLoader.pm:94)
Fatal Error: 1 Can't locate object method "tid" via package "threads" at
/usr/lib/perl/5.10/XSLoader.pm line 94, <GEN3> line 1.
So I cannot write a code which loads SSL modules (which I want) only if
user wants to use SSL.
LWP/Net::HTTPS 6.04
IO::Socket::SSL 1.81
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining Net/HTTPS.pm around SSL_SOCKET_CLASS and the reported configure failure. Compare the conditional loading behavior of IO::Socket::SSL with the Net::SSLeay and XSLoader errors shown in the report. Done means SSL can be selected conditionally without the reported method or threads-loading failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100