SimonRichardson / funk

Haxe FP Library
Other
35 stars 5 forks source link

Infinite loop in nodejs. #41

Open 0b1kn00b opened 11 years ago

0b1kn00b commented 11 years ago

LoggingBus:70

for(i in bits.iterator()) {
            if (from <= i) subscribe(actor, LogLevelTypes.index(i));
        }

        publish(Data(Debug, '$logName, logger ${name} started'));

Appears to be the root of the problem. publishEvent seems to be pushing an event to the ActorSystem (added in setupDefaultLoggers) which then repeats.

pull up node and do

var system  = ActorSystem.create('system');  
SimonRichardson commented 11 years ago

I'll have to look into this, I've written hardly any tests around the actor part.

0b1kn00b commented 11 years ago

in Log.log, this may be the issue, can't seem to get sense from it streamIn().dispatch(output);