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> |
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>
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.