ircanywhere / irc-factory

A rebuilt irc-factory from simple-irc-socket and irc-message. Get support at #ircanywhere on freenode
https://ircanywhere.com
MIT License
60 stars 14 forks source link

"failed" event is emitted too often #31

Open hohl opened 9 years ago

hohl commented 9 years ago

It seems like "failed" is triggered in an endless loop once connection establishment failed a couple of times.

Mon, 13 Apr 2015 11:14:00 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:00.898Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:01 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:01.302Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:01 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:01.824Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:01 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:01.896Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:04 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:04.891Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:05 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:05.895Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:09 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:09.054Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:10 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:10.014Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:11 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:11.906Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:11 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:11.906Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:13 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:13.874Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:13 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:13.874Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:14 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:14.011Z","reconnecting":false,"attempts":10}}
Mon, 13 Apr 2015 11:14:17 GMT irc:debug received IRC event: {"event":["55108049d2412cd407d5b557","failed"],"message":{"time":"2015-04-13T11:14:17.176Z","reconnecting":false,"attempts":10}}
rickihastings commented 9 years ago

Afaik this is correct as these are failed connection attempts. I can't remember if it stops after a while or it's configurable or not. I'll look into it.

hohl commented 9 years ago

Are you sure? Since I'm not talking about the 10 "reconnect" attempts. These 10 attempts work like expected. But once they are finished the "failed" event is fired in an loop without trying it anymore.