You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fairly simple IRC bot which uses tennu. It is persistently connected to freenode. Once or twice a day it becomes disconnected from freenode. I have full debug logs enabled and there is nothing indicating why the disconnection occurred. I've also tcpdumped the traffic, and the client appears to cleanly close the socket, with no other activity immediately preceding the close (nor is there an unusual cessation of activity prior to the close).
I have a feeling I'm missing something. How might I go about debugging this further?
The text was updated successfully, but these errors were encountered:
I'm not sure why that would happen unless you're using one of the versions of irc-socket with poor timeout handling. Actually, it's still somewhat poor (though you say there's no unusual cessation of activity, so the current poor handling won't close in that case).
What version of irc-socket are you using? Check with npm ls. If it's not v.2.3.2, you need to update.
If you want to catch timeouts when they happen, try adding this line somewhere.
client.socket.on("timeout", function () { client.error("Socket timed out."); });
I have a fairly simple IRC bot which uses tennu. It is persistently connected to freenode. Once or twice a day it becomes disconnected from freenode. I have full debug logs enabled and there is nothing indicating why the disconnection occurred. I've also tcpdumped the traffic, and the client appears to cleanly close the socket, with no other activity immediately preceding the close (nor is there an unusual cessation of activity prior to the close).
I have a feeling I'm missing something. How might I go about debugging this further?
The text was updated successfully, but these errors were encountered: