Skip Menu |

This queue is for tickets about the AnyEvent-Run CPAN distribution.

Report information
The Basics
Id: 48577
Status: open
Priority: 0/
Queue: AnyEvent-Run

People
Owner: Nobody in particular
Requestors: elmex [...] ta-sa.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.01
Fixed in: (no value)



Hi! The synopsis suggests that on_read means that all data has been received. Unfortunately it can be called multiple times according to AnyEvent::Handle. Also on_eof doesn't seem to work, so I currently see no way how I should see that the whole output of the child was received. Or even: that the child is done at all (eg. exited). Thanks, Robin
Hi, Yeah, on_read can be called multiple times, the docs in AnyEvent::Handle are correct even if mine are not. Can you provide a test case for your on_eof issue?
Subject: Re: [rt.cpan.org #48577]
Date: Mon, 10 Aug 2009 18:09:23 +0200
To: Andy Grundman via RT <bug-AnyEvent-Run [...] rt.cpan.org>
From: Robin Redeker <elmex [...] ta-sa.org>
On Mon, Aug 10, 2009 at 11:34:12AM -0400, Andy Grundman via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=48577 > > > Hi, > > Yeah, on_read can be called multiple times, the docs in AnyEvent::Handle are > correct even if mine are not. > > Can you provide a test case for your on_eof issue?
Hm, I might have misinterpreted it a bit. I think the issue is just that I always get an 'EPIPE' and on_error is called. However, the AnyEvent::Handle manpage suggests to use the on_error callback anyway to retrieve all output (and leave on_eof undefined). One remaining issue might be that I see no way to get the exit value of the executed command, to see whether it exited normally. Thanks, Robin -- Robin Redeker | Deliantra, the free code+content MORPG elmex@ta-sa.org / r.redeker@gmail.com | http://www.deliantra.net http://www.ta-sa.org/ |