Skip Menu |

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

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

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

Bug Information
Severity: Normal
Broken in: 5.805
Fixed in: (no value)


Subject: RobotUA constructor ignores delay, use_sleep
Download (untitled) / with headers
text/plain 184b
According to LWP::RobotUA's docs, "delay" and "use_sleep" should initialize the UA's initial attributes. The values are extracted from the given options, but not used. Fix attached.
Subject: robotua-constructor.patch
Index: lib/LWP/ =================================================================== RCS file: /cvsroot/libwww-perl/lwp5/lib/LWP/,v retrieving revision 1.27 diff -u -r1.27 --- lib/LWP/ 6 Apr 2004 13:14:37 -0000 1.27 +++ lib/LWP/ 30 Aug 2006 22:37:58 -0000 @@ -50,8 +50,8 @@ my $self = LWP::UserAgent->new(%cnf); $self = bless $self, $class; - $self->{'delay'} = 1; # minutes - $self->{'use_sleep'} = 1; + $self->{'delay'} = $delay; # minutes + $self->{'use_sleep'} = $use_sleep; if ($rules) { $rules->agent($cnf{agent});
Download (untitled) / with headers
text/plain 108b
This was a duplicate of RT#35456 (or rather the other way around). Anyways, the patch has now been applied.

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

Please report any issues with to