freebsd-ports/devel/p5-PerlIO-via-Timeout/pkg-descr
Sunpoet Po-Chuan Hsieh ad4f267b7a Update WWW
search.cpan.org is shutting down.
It will redirect to metacpan.org after June 25, 2018.

With hat:	perl
2018-05-27 20:15:16 +00:00

13 lines
555 B
Text

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: https://metacpan.org/release/PerlIO-via-Timeout