Skip Menu |

This queue is for tickets about the Net-Async-HTTP CPAN distribution.

Report information
The Basics
Id: 87588
Status: resolved
Priority: 0/
Queue: Net-Async-HTTP

People
Owner: Nobody in particular
Requestors: kiyoshi.aman [...] gmail.com
Cc:
AdminCc:

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



Subject: Can't call method "new_future" on an undefined value at /home/chessa/perl5/lib/perl5/Net/Async/HTTP/Protocol.pm line 201.
For some URLs in my URL title announcement module[1], I get the error noted in the subject. URLs which cause this error always produce it. 1. https://github.com/Aerdan/Chessa/blob/master/scripts/Chessa/URIHandler.pm
A subtle effect of 'ready' queue pooling for multiple server connections. Should be fixed by the attached patch. -- Paul Evans
Subject: rt87588.patch
=== modified file 'lib/Net/Async/HTTP/Protocol.pm' --- lib/Net/Async/HTTP/Protocol.pm 2013-07-19 23:39:50 +0000 +++ lib/Net/Async/HTTP/Protocol.pm 2013-08-04 22:59:03 +0000 @@ -61,6 +61,7 @@ $self->debug_printf( "CLOSED" ); + undef $self->{ready_queue}; $on_closed->( $self ); }; }
On Sun Aug 04 19:00:05 2013, PEVANS wrote: Show quoted text
> A subtle effect of 'ready' queue pooling for multiple server connections. > > Should be fixed by the attached patch.
This patch does indeed resolve the problem.
Was fixed in 0.28 -- Paul Evans