push_read bug on linux?
schmorp at schmorp.de
Sat Sep 18 09:42:44 CEST 2010
On Sat, Sep 18, 2010 at 09:56:29AM +0800, Chia-liang Kao <clkao at clkao.org> wrote:
> just run it with a large newline-separated file as ARGV, and it will
The bug is in your usage - nonblocking operations with files are
completely nonsensical (what are you trying to achieve?) and therefore not
supported by AnyEvent::Handle (or AnyEvent fort hat matter (or the linux
kernel for that matter)).
> ubuntu 10.4 server image on ec2 with EV installed using default
> options. The Perl backend works fine too.
If you think nonblocking operations should work sensibly on files, you
need to draw up a proposal and submit it to the linux-kernel list. Nobody
ever has come up with one, though, so it's unlikely that you will change
Note that even if linux started to support non-blocking event-based
operations on files, Anyevent would still not support them as no other OS
sensibly has any specific support for this - at best, the non-blocking
flag gets ignored.
Since for some reason people keep coming up with this nonsense without
trying to understand non-blocking operaitons or googling a bit (or check
the mailinglist...), the next release of AnyEvent will actively check for
this user error, btw.
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
More information about the anyevent