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

http://cpansearch.perl.org/src/MLEHMANN/Coro-5.131/eg/lwp
  • Comment on Re: Simple Coro + AnyEvent::HTTP example?

Replies are listed 'Best First'.
Re^2: Simple Coro + AnyEvent::HTTP example?
by Anonymous Monk on Mar 19, 2009 at 08:58 UTC
    Thanks, that's a good start, I tried to change the example to loop over a few URLs and and seems to work (though it looks odd that Google answers last), what I am still missing is how to set a timeout. Well, I can set it for every LWP connection, but how can I set it for the whole loop?
    And I don't understand why do I need "$SIG{PIPE} = 'IGNORE';"?
    So, really many thanks for this valuable pointer but I would like to understand it a bit better and I am still interested in an example with AnyEvent::HTTP.

    Michael