RECENT POSTS

P5-perlio-via-timeout

May 26, 2018

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

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 IOSocketTimeout that implements exactly that.

WWW http//search.cpan.org/dist/PerlIO-via-Timeout