in reply to Simple Coro + AnyEvent::HTTP example?

It seems as if you've picked the tools for the job, so I hesitate to make this recommendation, but here goes. Have you checked out the possibility of using LWP::Parallel? It's API is pretty simple, and the examples in the documentation are pretty straightforward. I've used it with a scanner script that checks hundreds of URLs with no problems.

  • Comment on Re: Simple Coro + AnyEvent::HTTP example?

Replies are listed 'Best First'.
Re^2: Simple Coro + AnyEvent::HTTP example?
by perrin (Chancellor) on Mar 19, 2009 at 19:25 UTC
    Last time I tried that, it was really slow. Much slower than just forking and using LWP normally in each process.
Re^2: Simple Coro + AnyEvent::HTTP example?
by Anonymous Monk on Mar 19, 2009 at 15:17 UTC
    Good catch and certainly an alternative. I would still like to look into Coro because it is more generic. Most of the hosts I want to query have a HTTP interface but some don't. Of course I could write a wrapper and perhaps I will but if I could learn how to properly use Coro I could manage the different interfaces in a generic way.