New port: devel/p5-PerlIO-via-Timeout

This package implements a PerlIO layer, that adds read / write
timeout. This can be useful to avoid blocking while accessing a
handle (file, socket, ...), and fail after some time.

The timeout is implemented by using <select> on the handle before
reading/writing.

WARNING the handle won't timeout if you use sysread or syswrite on
it, because these functions works at a lower level. However if
you're trying to implement a timeout for a socket, see IO::Socket::Timeout
that implements exactly that.

WWW: http://search.cpan.org/dist/PerlIO-via-Timeout
This commit is contained in:
Kurt Jaeger 2015-12-05 20:37:11 +00:00
parent 3cdfc7d574
commit 9317164fa0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=403076
5 changed files with 40 additions and 1 deletions

View file

@ -2887,7 +2887,6 @@
SUBDIR += p5-Perl-Tidy
SUBDIR += p5-Perl-Unsafe-Signals
SUBDIR += p5-Perl-Version
SUBDIR += p5-Perl-osnames
SUBDIR += p5-Perl4-CoreLibs
SUBDIR += p5-Perl6-Builtins
SUBDIR += p5-Perl6-Export
@ -2903,6 +2902,7 @@
SUBDIR += p5-PerlIO-locale
SUBDIR += p5-PerlIO-utf8_strict
SUBDIR += p5-PerlIO-via-MD5
SUBDIR += p5-PerlIO-via-Timeout
SUBDIR += p5-PerlIO-via-dynamic
SUBDIR += p5-PerlIO-via-symlink
SUBDIR += p5-PerlX-Maybe

View file

@ -0,0 +1,20 @@
# $FreeBSD$
PORTNAME= PerlIO-via-Timeout
PORTVERSION= 0.32
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= pi@FreeBSD.org
COMMENT= PerlIO layer to add read & write timeouts to a handle
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
NO_ARCH= yes
USE_PERL5= configure
USES= perl5
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (PerlIO-via-Timeout-0.32.tar.gz) = 9278f9ef668850d913d98fa4c0d7e7d667cff3503391f4a4eae73a246f2e7916
SIZE (PerlIO-via-Timeout-0.32.tar.gz) = 13560

View file

@ -0,0 +1,13 @@
This package implements a PerlIO layer, that adds read / write
timeout. This can be useful to avoid blocking while accessing a
handle (file, socket, ...), and fail after some time.
The timeout is implemented by using <select> on the handle before
reading/writing.
WARNING the handle won't timeout if you use sysread or syswrite on
it, because these functions works at a lower level. However if
you're trying to implement a timeout for a socket, see IO::Socket::Timeout
that implements exactly that.
WWW: http://search.cpan.org/dist/PerlIO-via-Timeout

View file

@ -0,0 +1,4 @@
%%SITE_PERL%%/PerlIO/via/README.pod
%%SITE_PERL%%/PerlIO/via/Timeout.pm
%%PERL5_MAN3%%/PerlIO::via::README.3.gz
%%PERL5_MAN3%%/PerlIO::via::Timeout.3.gz