in reply to What's causing the busy wait when using AnyEvent::HTTP

I haven't looked into AnyEvent::HTTP, but if your HTTP request callback never gets called, your code fragment looks as if $cv will never be decremented. This could then turn into an infinite loop.

Replies are listed 'Best First'.
Re^2: What's causing the busy wait when using AnyEvent::HTTP
by Anonymous Monk on Apr 11, 2014 at 07:07 UTC
    That would present differently. The program would never end, but would not use 100% cpu.