Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 101226
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: TEODESIAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 6.08
Fixed in: (no value)



Subject: LWP::UserAgent fails on windows XP, likely also on Windows server 2008
Download (untitled) / with headers
text/plain 1.2k
used Strawberry Perl 5.20 32-bit - downloaded Dec 31 2014 LWP 6.08 I recently got a ticket for my module TestRail::API. The reporter noted that there were some bizarre intermittent failures on windows server '08; the socket comms seemed flaky. So, I decided to investigate. On windows XP (the closest to server '08 I can get my hands on), LWP failed completely to get any HTTP Resource, though IO::Socket::INET seemed fine: #test.t-------------------------- use strict; use warnings; use Test::More tests => 2; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $req = HTTP::Request->new(); $req->method('GET'); $req->url('http://google.com'); my $resp = $ua->request($req); is($resp->code,200,"LWP can get google.com"); use IO::Socket; my $sock = IO::Socket::INET->new( PeerAddr => 'google.com', LocalAddr => $ua->{local_address}, PeerPort => 80, proto => 'tcp', timeout => 60, KeepAlive => !!$ua->{conn_cache}, SendTE => 1 ); ok($sock,"Can open socket on port 80 to google.com"); 0; Had test 1 fail, and test 2 was OK. Windows 7 worked just fine. LWP 6.05 works just fine, it's bundled with strawberry 5.18.2.2 This might not come as a surprise, though. CPANTesters seems to suggest windows is having some pretty big problems with 6.08.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.