IO::Framed::X::EmptyRead
use Try::Tiny; use IO::Framed::Read; my $iof = IO::Framed::Read->new( $some_socket ); try { $iof->read(20) } catch { if ( try { $_->isa('IO::Framed::Read') } ) { ... } };
Thrown when a read operation returns empty but without an error from the operating system. This isn’t an *error* so much as just an “exceptional condition” that so radically changes the application state that it’s worth throwing on.
You can suppress this error by setting allow_empty_read() on the IO::Framed::Read instance; otherwise, you should probably always trap this error so you can cleanly shut things down.
allow_empty_read()
To install IO::Framed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Framed
CPAN shell
perl -MCPAN -e shell install IO::Framed
For more information on module installation, please visit the detailed CPAN module installation guide.