Re: retry a Poe::Wheel::ReadWrite->put()
Martijn van Beers <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
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. Martijn