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

Owner: Nobody in particular
Requestors: TEODESIAN [...]

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(''); my $resp = $ua->request($req); is($resp->code,200,"LWP can get"); use IO::Socket; my $sock = IO::Socket::INET->new( PeerAddr => '', 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"); 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 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 infrastructure.

Please report any issues with to