summaryrefslogtreecommitdiff
path: root/devel/p5-PerlIO-via-Timeout/pkg-descr
blob: 3da5e4e189f0cf757732b511d2968ce11ca55e2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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.