Skip Menu |
 

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

Report information
The Basics
Id: 55073
Status: resolved
Priority: 0/
Queue: AnyEvent-HTTPD

People
Owner: Nobody in particular
Requestors: hideki.yamamura [...] gmail.com
Cc:
AdminCc:

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



Subject: a tiny fix for response_done in HTTPConnection.pm
Date: Mon, 1 Mar 2010 11:32:00 +0900
To: bug-AnyEvent-HTTPD [...] rt.cpan.org
From: Hideki Yamamura <hideki.yamamura [...] gmail.com>
Download (untitled) / with headers
text/plain 574b
Dear Robin Redeker, I'm really grateful to you for your cpan modules. I got an error msg like this: EV: error in callback (ignoring): Can't call method "on_drain" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/AnyEvent/HTTPD/HTTPConnection.pm line 69. This error can reproduce with aehttpd-test.pl. run the httpd server, request "/test" with IE8, and stop immediate. I think $self->{hdl} is already deleted by on_error callback. so I made a patch to do nothing when $self->{hdl} doesn't exist. Sincerely yours, -- Hideki YAMAMURA <hideki.yamamura@gmail.com>
Download aehttpd-test.pl
text/x-perl 325b

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 792b
On Sun Feb 28 21:33:05 2010, hideki.yamamura@gmail.com wrote: Show quoted text
> Dear Robin Redeker, > > I'm really grateful to you for your cpan modules. > > I got an error msg like this: > EV: error in callback (ignoring): Can't call method "on_drain" on an > undefined value at > /usr/lib/perl5/site_perl/5.8.8/AnyEvent/HTTPD/HTTPConnection.pm line > 69. > > This error can reproduce with aehttpd-test.pl. > run the httpd server, request "/test" with IE8, and stop immediate. > > I think $self->{hdl} is already deleted by on_error callback. > so I made a patch to do nothing when $self->{hdl} doesn't exist. > > Sincerely yours,
Hi! Thanks for the small patch, it's indeed a small but useful fix. Applied it to my git repository, it will be fixed in the next release. Thanks & Greetings, Robin
New version has been released. Thanks and Greetings, Robin


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.