Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2007 17:19:09 +0800 (CST)
From:      chinsan <chinsan@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/110469: [NEW PORT] devel/p5-HTTP-Async: Process multiple HTTP requests in parallel without blocking
Message-ID:  <20070318091909.26ABB11464@chinsan.twbbs.org>
Resent-Message-ID: <200703180920.l2I9K36R021542@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110469
>Category:       ports
>Synopsis:       [NEW PORT] devel/p5-HTTP-Async: Process multiple HTTP requests in parallel without blocking
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 18 09:20:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     chinsan
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
Taiwan
>Environment:
System: FreeBSD chinsan.twbbs.org 6.2-STABLE FreeBSD 6.2-STABLE #6: Mon Feb  5 23:22:25 CST
>Description:
Although using the conventional LWP::UserAgent is fast and easy it does have
some drawbacks - the code execution blocks until the request has been
completed and it is only possible to process one request at a time.
HTTP::Async attempts to address these limitations.

It gives you a 'Async' object that you can add requests to, and then get the
requests off as they finish. The actual sending and receiving of the
requests is abstracted. As soon as you add a request it is transmitted, if
there are too many requests in progress at the moment they are queued. There
is no concept of starting or stopping - it runs continuously.

WWW: http://search.cpan.org/dist/HTTP-Async/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- p5-HTTP-Async-0.07.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-HTTP-Async
#	p5-HTTP-Async/Makefile
#	p5-HTTP-Async/distinfo
#	p5-HTTP-Async/pkg-descr
#	p5-HTTP-Async/pkg-plist
#
echo c - p5-HTTP-Async
mkdir -p p5-HTTP-Async > /dev/null 2>&1
echo x - p5-HTTP-Async/Makefile
sed 's/^X//' >p5-HTTP-Async/Makefile << 'END-of-p5-HTTP-Async/Makefile'
X# New ports collection makefile for:	p5-HTTP-Async
X# Date created:				2007/02/14
X# Whom:					chinsan
X#
X# $FreeBSD$
X#
X
XPORTNAME=	HTTP-Async
XPORTVERSION=	0.07
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	../../authors/id/E/EV/EVDB
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	chinsan@FreeBSD.org
XCOMMENT=	Process multiple HTTP requests in parallel without blocking
X
XBUILD_DEPENDS=	p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build \
X		p5-URI>=0:${PORTSDIR}/net/p5-URI \
X		p5-HTTP-Server-Simple>=0:${PORTSDIR}/www/p5-HTTP-Server-Simple \
X		p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
X		p5-Test-HTTP-Server-Simple>=0:${PORTSDIR}/www/p5-Test-HTTP-Server-Simple
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XMAN3=		HTTP::Async.3 HTTP::Async::Polite.3
X
XPERL_CONFIGURE=	yes
X
X.include <bsd.port.mk>
END-of-p5-HTTP-Async/Makefile
echo x - p5-HTTP-Async/distinfo
sed 's/^X//' >p5-HTTP-Async/distinfo << 'END-of-p5-HTTP-Async/distinfo'
XMD5 (HTTP-Async-0.07.tar.gz) = d18d2c705ea8a2b1e3d40cb65ee73fbd
XSHA256 (HTTP-Async-0.07.tar.gz) = 8bbafdd974f17e812f69fa02f1cf598c5728c62e6cd4d23ec098f8705053c277
XSIZE (HTTP-Async-0.07.tar.gz) = 16855
END-of-p5-HTTP-Async/distinfo
echo x - p5-HTTP-Async/pkg-descr
sed 's/^X//' >p5-HTTP-Async/pkg-descr << 'END-of-p5-HTTP-Async/pkg-descr'
XAlthough using the conventional LWP::UserAgent is fast and easy it does have
Xsome drawbacks - the code execution blocks until the request has been
Xcompleted and it is only possible to process one request at a time.
XHTTP::Async attempts to address these limitations.
X
XIt gives you a 'Async' object that you can add requests to, and then get the
Xrequests off as they finish. The actual sending and receiving of the
Xrequests is abstracted. As soon as you add a request it is transmitted, if
Xthere are too many requests in progress at the moment they are queued. There
Xis no concept of starting or stopping - it runs continuously.
X
XWWW: http://search.cpan.org/dist/HTTP-Async/
END-of-p5-HTTP-Async/pkg-descr
echo x - p5-HTTP-Async/pkg-plist
sed 's/^X//' >p5-HTTP-Async/pkg-plist << 'END-of-p5-HTTP-Async/pkg-plist'
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Async/.packlist
X%%SITE_PERL%%/HTTP/Async.pm
X%%SITE_PERL%%/HTTP/Async/Polite.pm
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Async
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP
X@dirrmtry %%SITE_PERL%%/HTTP/Async
X@dirrmtry %%SITE_PERL%%/HTTP
END-of-p5-HTTP-Async/pkg-plist
exit
--- p5-HTTP-Async-0.07.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070318091909.26ABB11464>