Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Creating A Single Threaded Server with AnyEvent

by james2vegas (Chaplain)
on Nov 07, 2012 at 08:57 UTC ( #1002645=note: print w/replies, xml ) Need Help??


in reply to Creating A Single Threaded Server with AnyEvent

You are recursively calling $cv->recv, instead you should, when you create your new condvar, associate a callback which will be called when you send on your $cv