FreeBSD.software
Home/devel/p5-PerlIO-via-Timeout

p5-PerlIO-via-Timeout

0.32_1devel

PerlIO layer to add read and write timeouts to a handle

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.

$pkg install p5-PerlIO-via-Timeout
metacpan.org/release/PerlIO-via-Timeout
Origin
devel/p5-PerlIO-via-Timeout
Size
16.0KiB
License
ART10, GPLv1+
Maintainer
pi@FreeBSD.org
Dependencies
1 packages
Required by
1 packages

Dependencies (1)

Required By (1)