Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Concurrent LWP usage

by simul (Novice)
on Dec 07, 2009 at 16:36 UTC ( #811541=note: print w/replies, xml ) Need Help??


in reply to Re: Concurrent LWP usage (aka: LWP::PUA?)
in thread Parallel LWP usage

One solution is to use WWW::Curl::Simple. Here's everything I needed to convert:
#my $ua = LWP::Parallel::UserAgent->new; package CurlToes; use base 'WWW::Curl::Simple'; sub timeout {return 20;} sub fatal {return 0;} package main; my $ua = CurlToes->new();
Unfortunately, it's a bear of an install, requiring arcane things like "Moose". I never like having to install 24 modules on a machine, just to post to a few dozen urls in parallel... but it works... and it's the closest you'll get to a drop-in replacement for LWP::Parallel;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2020-04-06 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (36 votes). Check out past polls.

    Notices?