Describe the bug
I connect discord with libera chat on port 6697 with TLS enabled, it connects well the first time and relays messages but when a connection loss happens and it subsequently reconnects, it gets stuck at the last line shown below. Sometimes it seems to connect successfully and relay messages but doesn't show that in the logs, being stuck at "joining #channel" message.
To Reproduce
-
Create a bridge between Discord and irc.libera.chat at port 6697 with UseTLS=true
-
After the bridge is functional, disconnect internet and reconnect it again, prompting the bridge to reconnect in 30 seconds.
-
Stuck in "joining #channel"
Screenshots/debug logs
[0000] INFO main: Running version 1.26.1-dev
[0000] INFO main: WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[0000] INFO router: Parsing gateway hwbridge-channel-gateway
[0000] INFO router: Starting bridge: irc.libera
[0000] INFO irc: Connecting irc.libera.chat:6697
[0015] INFO irc: Connection succeeded
[0015] INFO irc: irc.libera: joining #hedgewars (ID: #hedgewarsirc.libera)
[0015] INFO router: Starting bridge: discord.HW_BRIDGE-IRC
[0015] INFO discord: Connecting
[0015] INFO discord: Connection succeeded
[0020] INFO discord: discord.HW_BRIDGE-IRC: joining irc-bridge (ID: irc-briidgediscord.HW_BRIDGE-IRC)
[0020] INFO main: Gateway(s) started successfully. Now relaying messages
[0703] ERROR irc: disconnect: error: read tcp [######::#####]:41832->[2001:6b0:e:2a18::120]:6697: read: software caused connection abort
[0703] INFO irc: reconnecting in 30 seconds...
[0722] INFO irc: irc.libera: joining #hedgewars (ID: #hedgewarsirc.libera)
Environment (please complete the following information):
- OS: Arch Linux
- Matterbridge version: straight from git master(1.26.1-dev)
Additional context
Config:
[irc]
[irc.libera]
Charset="utf-8"
ColorNicks=true
Nick=""
RealName="Matterbridge instance on IRC"
RemoteNickFormat="<{NICK}> "
#PingDelay="10s"
Server="irc.libera.chat:6697"
StripMarkdown=true
UseTLS=true
#UseRelayMsg=true
#Password="yourpassword"
# Enable SASL on modern servers like irc.libera.chat
UseSASL=true
NickServNick=""
NickServPassword=""
[discord]
[discord.HW_BRIDGE-IRC]
EditSuffix=" (edited)"
RemoteNickFormat="{NICK} [IRC]"
Token=""
Server=""
ShowEmbeds=true
UseUserName=true
UseLocalAvatar=["irc"]
#AutoWebhooks=true
# Map threads from other bridges on discord replies
PreserveThreading=true
[[gateway]]
name="hwbridge-channel-gateway"
enable=true
[[gateway.inout]]
account="irc.libera"
channel="#hedgewars"
[[gateway.inout]]
account="discord.HW_BRIDGE-IRC"
channel="irc-bridge"
# Specify options for this gateway link
[gateway.inout.options]
WebhookURL=""
Describe the bug
I connect discord with libera chat on port 6697 with TLS enabled, it connects well the first time and relays messages but when a connection loss happens and it subsequently reconnects, it gets stuck at the last line shown below. Sometimes it seems to connect successfully and relay messages but doesn't show that in the logs, being stuck at "joining #channel" message.
To Reproduce
Create a bridge between Discord and irc.libera.chat at port 6697 with
UseTLS=trueAfter the bridge is functional, disconnect internet and reconnect it again, prompting the bridge to reconnect in 30 seconds.
Stuck in "joining #channel"
Screenshots/debug logs
Environment (please complete the following information):
Additional context
Config: