Skip Menu |

This queue is for tickets about the Net-LastFM-Submission CPAN distribution.

Report information
The Basics
Id: 45436
Status: resolved
Priority: 0/
Queue: Net-LastFM-Submission

People
Owner: Nobody in particular
Requestors: martijn [...] cpan.org
Cc:
AdminCc:

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



Subject: use external PoCo::Client::HTTP object
In POE::Component::Net::LastFM::Submission, you start a new POE::Component::Client::HTTP no matter what. I think it would be better to accept a parameter that lists the alias/id of an existing ::Client::HTTP object. That way you can a) not run multiple instances of ::Client::HTTP if you need one for other things too b) configure it beyond the Agent and Timeout parameters that you're passing through now. (someone might need to use a proxy for example) You can then always start your own ::Client::HTTP when the user didn't supply the parameter.
Thanks. See new version of distr Net::LastFM::Submission Вск. Апр. 26 09:40:29 2009, MARTIJN писал: Show quoted text
> In POE::Component::Net::LastFM::Submission, you start a new > POE::Component::Client::HTTP no matter what. I think it would be better > to accept a parameter that lists the alias/id of an existing > ::Client::HTTP object. > That way you can > > a) not run multiple instances of ::Client::HTTP if you need one for > other things too > b) configure it beyond the Agent and Timeout parameters that you're > passing through now. (someone might need to use a proxy for example) > > You can then always start your own ::Client::HTTP when the user didn't > supply the parameter.
-- use Perl or die;