Closed llunak closed 2 years ago
Sorry, the way the library is build, it's not possible to have those reconnect messages as a message in matterircd itself. You could make a script that tails the output and send you the error messages or a script that disconnects/connects when you put your laptop in/out sleep.
If it's not possible to have those messages in matterircd, then how come I see them if I reconnect the IRC client? Are you telling me mattericrd cannot close and setup again the socket connection to the IRC client that it is providing?
Because you see them on connect, not on reconnects. Feel free to make a PR though.
I connect using a personal token, which sometimes expires. If I start my IRC client in that case (or choose reconnect) I get a message in the 'mattermost' channel about the expired session. But if I suspend my laptop and resume later, there is nothing, so it looks like the session is still active, just without messages. That means that I do not get any new messages until I explicitly reconnect. I'm also connected to irc.libera.chat and IRC client detects connection loss there and reconnects (presumably because that's a remote connection while I run matterircd locally).
The log below shows starting a session around 16:22, laptop gets suspended at 23:30 and resumed at 5:50. The log repeats messages about failed login every 10 seconds until I reconnected IRC client at 8:55.