Re: retry a Poe::Wheel::ReadWrite->put()

Seth Daniel <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
On Sat, Sep 27, 2008 at 11:45:57PM +0200, Martijn van Beers wrote:
> On Sat, 2008-09-27 at 14:16 -0700, Seth Daniel wrote:
> > Hi,
> > 
> > Once the child session performs a put(), the write will fail and I
> > receive an ErrorEvent.  I don't seem to be able to get the data that was
> > in the original put().  So, if I buffer the data, perform the put(), and
> > then receive an error I can use the wheel_id to identify the data that
> > failed to be written.  However, I don't get an event when the write is
> > successful so it doesn't seem like I can remove items from the buffer.
> 
> You can sign up for Wheel::ReadWrite's FlushedEvent, just like you had
> to to receive the ErrorEvent.

But I'm doing lots of writes.  Doesn't the FlushedEvent only occur when
the write queue is empty?  If I'm continually queuing writes before the
error occurs isn't it possible that the write queue never becomes empty?

-- 
seth /\ sethdaniel.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.