Skip Menu |

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

Report information
The Basics
Id: 48578
Status: resolved
Priority: 0/
Queue: AnyEvent-JSONRPC-Lite

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

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



Hi! Just wanted to report that I get this warning output: Server got error Unexpected end-of-file at /opt/perl510/lib/site_perl/5.10.0/AnyEvent/JSONRPC/Lite/Server.pm line 54. The thing is that EOFs are reported via on_error callback in AnyEvent::Handle. And that it is kind of a 'normal' condition to get an EOF if the client closes the connection. Thanks, Robin
I think this should be fixed already in 0.02. Please check your module version again. On Mon Aug 10 06:15:14 2009, ELMEX wrote: Show quoted text
> Hi! > > Just wanted to report that I get this warning output: > > Server got error Unexpected end-of-file at > /opt/perl510/lib/site_perl/5.10.0/AnyEvent/JSONRPC/Lite/Server.pm line 54. > > The thing is that EOFs are reported via on_error callback in > AnyEvent::Handle. And that it is kind of a 'normal' condition > to get an EOF if the client closes the connection. > > > Thanks, > Robin
Subject: Re: [rt.cpan.org #48578]
Date: Tue, 11 Aug 2009 08:45:30 +0200
To: Daisuke Murase via RT <bug-AnyEvent-JSONRPC-Lite [...] rt.cpan.org>
From: Robin Redeker <elmex [...] ta-sa.org>
Hi! Hmm, I still find the warn code in 0.2: http://cpansearch.perl.org/src/TYPESTER/AnyEvent-JSONRPC-Lite-0.02/lib/AnyEvent/JSONRPC/Lite/Server.pm my $handle = AnyEvent::Handle->new( on_error => sub { my ($h, $fatal, $msg) = @_; $h->destroy; warn 'Server got error ', $msg; }, Greetings, Robin On Mon, Aug 10, 2009 at 09:29:30PM -0400, Daisuke Murase via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=48578 > > > I think this should be fixed already in 0.02. > Please check your module version again. > > On Mon Aug 10 06:15:14 2009, ELMEX wrote:
> > Hi! > > > > Just wanted to report that I get this warning output: > > > > Server got error Unexpected end-of-file at > > /opt/perl510/lib/site_perl/5.10.0/AnyEvent/JSONRPC/Lite/Server.pm line 54. > > > > The thing is that EOFs are reported via on_error callback in > > AnyEvent::Handle. And that it is kind of a 'normal' condition > > to get an EOF if the client closes the connection. > > > > > > 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/ |
hmm, can you send me a failing test? This bug doesn't appear in my environment, EOF should handled by on_eof at latest version of this module. On Tue Aug 11 02:45:48 2009, ELMEX wrote: Show quoted text
> Hi! > > Hmm, I still find the warn code in 0.2: > > http://cpansearch.perl.org/src/TYPESTER/AnyEvent-JSONRPC-Lite- > 0.02/lib/AnyEvent/JSONRPC/Lite/Server.pm > > my $handle = AnyEvent::Handle->new( > on_error => sub { > my ($h, $fatal, $msg) = @_; > $h->destroy; > warn 'Server got error ', $msg; > }, > > > Greetings, > Robin > > On Mon, Aug 10, 2009 at 09:29:30PM -0400, Daisuke Murase via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=48578 > > > > > I think this should be fixed already in 0.02. > > Please check your module version again. > > > > On Mon Aug 10 06:15:14 2009, ELMEX wrote:
> > > Hi! > > > > > > Just wanted to report that I get this warning output: > > > > > > Server got error Unexpected end-of-file at > > > /opt/perl510/lib/site_perl/5.10.0/AnyEvent/JSONRPC/Lite/Server.pm
> line 54.
> > > > > > The thing is that EOFs are reported via on_error callback in > > > AnyEvent::Handle. And that it is kind of a 'normal' condition > > > to get an EOF if the client closes the connection. > > > > > > > > > Thanks, > > > Robin
> > > >
>
Hi! My CPAN must've been stuck at the version before 0.02. The warn indeed doesn't appear anymore. Sorry for the confusion :-) Thanks for your time! Robin