- add p5-LWP-UserAgent-Determined-1.03

This class works just like LWP::UserAgent (and is based on it, by being a
subclass of it), except that when you use it to get a web page but run into a
possibly-temporary error (like a DNS lookup timeout), it'll wait a few seconds
and retry a few times.

It also adds some methods for controlling exactly what errors are considered
retry-worthy and how many times to wait and for how many seconds, but normally
you needn't bother about these, as the default settings are relatively sane.

WWW:    http://search.cpan.org/dist/LWP-UserAgent-Determined/
This commit is contained in:
Yen-Ming Lee 2008-03-17 03:07:09 +00:00
parent 495d3d4601
commit 545a0e5e37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209177
5 changed files with 43 additions and 0 deletions

View file

@ -840,6 +840,7 @@
SUBDIR += p5-Jifty
SUBDIR += p5-Kwiki
SUBDIR += p5-LWP-Authen-Wsse
SUBDIR += p5-LWP-UserAgent-Determined
SUBDIR += p5-LWP-UserAgent-WithCache
SUBDIR += p5-LWPx-ParanoidAgent
SUBDIR += p5-MasonX-Interp-WithCallbacks

View file

@ -0,0 +1,24 @@
# New ports collection makefile for: p5-LWP-UserAgent-Determined
# Date created: 2008-03-16
# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= LWP-UserAgent-Determined
PORTVERSION= 1.03
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= leeym@FreeBSD.org
COMMENT= A virtual browser that retries errors
RUN_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= LWP::UserAgent::Determined.3
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (LWP-UserAgent-Determined-1.03.tar.gz) = 5a6c0a9e219dc06234698b49addef458
SHA256 (LWP-UserAgent-Determined-1.03.tar.gz) = 67300a55c6ec65c6d3abf323e9c2522c2335f7231db6ef684dd555e34a63ed1e
SIZE (LWP-UserAgent-Determined-1.03.tar.gz) = 6268

View file

@ -0,0 +1,10 @@
This class works just like LWP::UserAgent (and is based on it, by being a
subclass of it), except that when you use it to get a web page but run into a
possibly-temporary error (like a DNS lookup timeout), it'll wait a few seconds
and retry a few times.
It also adds some methods for controlling exactly what errors are considered
retry-worthy and how many times to wait and for how many seconds, but normally
you needn't bother about these, as the default settings are relatively sane.
WWW: http://search.cpan.org/dist/LWP-UserAgent-Determined/

View file

@ -0,0 +1,5 @@
%%SITE_PERL%%/LWP/UserAgent/Determined.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/LWP/UserAgent/Determined/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/LWP/UserAgent/Determined
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/LWP/UserAgent
@dirrmtry %%SITE_PERL%%/LWP/UserAgent