Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LWP::Useragent Fatal Error [rt.cpan.org #42782] #135

Open
oalders opened this issue Mar 30, 2017 · 0 comments
Open

LWP::Useragent Fatal Error [rt.cpan.org #42782] #135

oalders opened this issue Mar 30, 2017 · 0 comments

Comments

@oalders
Copy link
Member

oalders commented Mar 30, 2017

Migrated from rt.cpan.org#42782 (status was 'new')

Requestors:

From yegg@cpan.org on 2009-01-25 17:42:20:

It quite simply dies when trying to retrieve: https://www.whatsyourriskscore.info

I'm not exactly sure what is going on, but I've traced it to line 206 of 
http.pm:

            # Since this just writes out the header block it should 
almost
            # always succeed to send the whole buffer in a single write 
call.
            my $n = $socket->syswrite($req_buf, length($req_buf));


That goes to SSL.pm and seems to fail or stop on this line:

$written = Net::SSLeay::write_partial( $ssl,$offset,$length,$$buffer );



Ex. to reproduce:
use LWP::UserAgent;
my $ua = new LWP::UserAgent();
my $request = HTTP::Request-
>new('GET','https://www.whatsyourriskscore.info/');
my $response = $ua->request($request);
print 'CODE: ', $response->code, "\n";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant