push_read bug on linux?

Marc Lehmann schmorp at schmorp.de
Sat Sep 18 20:17:43 CEST 2010

On Sat, Sep 18, 2010 at 05:48:37PM +0800, Chia-liang Kao <clkao at clkao.org> wrote:
> users.  It was probably naive for me to assume that the event loop
> will just check the file's rflag and do the scheduling of that reader

whats a file's rflag? if you mean readable, then files are always
trivially readable, so you can just open and read it if it's not a problem
to wait for I/O.

> callback and the rest of the server logic.
> What would you suggest to do in such case?

use IO::AIO for example (via AnyEvent::AIO perhaps), that will do
event-based async I/O.

                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 mailing list