in reply to Re^2: Coro, EV and cede
in thread Coro, EV and cede

The first result shows that cede works, as you get your switching. The problem starts after LWP comes in, and looking into Coro::LWP documentation, it looks like it does something rather cumbersome. I don't see it even tries to establish connection with the server. But if I replace CORE::select with just select everything is ok.

I'd say you should try something else. I had positive experience with AnyEvent::HTTP, or maybe threads.

Replies are listed 'Best First'.
Re^4: Coro, EV and cede
by Nick Kostirya (Sexton) on Apr 07, 2011 at 13:22 UTC

    CORE::select is used to slow down the output. Its change to Coro select is equal to the call of Coro sleep 0. Remove the select at all if you wish.

    The problem will still persist with using AnyEvent::HTTP.

      Yes, sorry, I wasn't clear, I meant "no Coro at all" when suggested AnyEvent::HTTP.