in reply to Re: POE::Wheel::ReadWrite: "low priority" events
in thread POE::Wheel::ReadWrite: "low priority" events

I also tried your second version, but if you set BlockSize less than the file size, for some weird reason this session isn't able to post events to other sessions, returning "No such process".

In the debugger it fails on the following line:

POE::Kernel::_data_ses_resolve(/usr/local/share/perl5/POE/Resource/Ses +sions.pm:361): 361: return undef unless exists $kr_session_refs{$session}; # Pre +vents autoviv.

Not sure if that's ok, but nevertheless I'll go for your first version. Thanks a lot!

Replies are listed 'Best First'.
Re^3: POE::Wheel::ReadWrite: "low priority" events
by vlad_s (Novice) on Jan 21, 2012 at 18:03 UTC

    The "No such process" error was due to the recipient session being stopped by POE as it didn't have any resources to monitor. Setting an alias on that session cured the problem.

    As far as I can see both methods proposed by Rocco work quite well.