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
Every few weeks something weird happens and one of the connections I am bridging breaks,
Most-often it is gitter.
Now, I don't want this fixed as such.
What I want is for a better way to handle it.
[2018-04-18T20:44:00+08:00] ERROR gitter: connection with gitter closed for room JuliaLang/julia
[2018-04-18T20:44:00+08:00] ERROR gitter: connection with gitter closed for room JuliaDiffEq/Lobby
[2018-04-18T20:44:08+08:00] ERROR gitter: connection with gitter closed for room tbreloff/Plots.jl
[2018-04-18T20:44:25+08:00] ERROR gitter: connection with gitter closed for room JunoLab/Juno
[2018-04-18T20:44:25+08:00] ERROR gitter: connection with gitter closed for room JuliaGraphs/LightGraphs.jl
[2018-04-18T20:44:25+08:00] ERROR gitter: connection with gitter closed for room FluxML/Lobby
This error happens. My gitter connection goes down, but the program keeps running.
However, I am not aware of it, until hours or days later since it takes a while before anyone notices that it isn't bridging (since you have to be in both chatrooms or have to be reading the logs)
I'ld rather any errors just fully crash the program,
I have it running in a script that will restart it if that occurs.
I
The text was updated successfully, but these errors were encountered:
Most of the platform libraries (gitter, discord, slack, etc...) don't really have any good method for matterbridge to check the status of the connection and don't maintain anything as simple as a state value.
@42wim just thinking out loud, what if messages triggered something like a heartbeat that the bridge could track. I know that some (most?) of the supported platforms include a "ping" message. Maybe something can be done with that?
XMPP platforms support an XMPP ping that can be used to determine connection health.
Slack has the periodic LatencyReport event that can be used for the same purpose.
Discord has a heartbeat event with results stored in Session.LastHeartbeat(Sent|Received).
IRC servers usually implement a PING command. Something like "/PING NickServ" may prove to work for most situations. Making the ping command configurable may be a good long term solution.
Telegram has an API endpoint called help.getNearestDc that could be used as a sort of connection check.
I'm unfamiliar with any other platforms, but hope that someone can help build on this.
Every few weeks something weird happens and one of the connections I am bridging breaks,
Most-often it is gitter.
Now, I don't want this fixed as such.
What I want is for a better way to handle it.
This error happens. My gitter connection goes down, but the program keeps running.
However, I am not aware of it, until hours or days later since it takes a while before anyone notices that it isn't bridging (since you have to be in both chatrooms or have to be reading the logs)
I'ld rather any errors just fully crash the program,
I have it running in a script that will restart it if that occurs.
I
The text was updated successfully, but these errors were encountered: