Exit on IRC read error (ping timeout) #63

Merged
aronson merged 2 commits from exit-on-read-error into main 2025-10-23 22:31:43 +00:00
aronson commented 2024-03-10 02:15:35 +00:00 (Migrated from github.com)

Problem

The bot sometimes gets a ping timeout on Libera and fails to reconnect, appearing as a generic "read error" in the logs.

Solution

Promote the error output to show all metadata and allow for optional exitOnReadError logic.

When this config property is set to true, the bot will terminate the program when a ping timeout occurs. This is intended for use with docker, k8s, or systemd environments where some management software will restart the discord-irc program or container automatically on exit.

## Problem The bot sometimes gets a ping timeout on Libera and fails to reconnect, appearing as a generic "read error" in the logs. ## Solution Promote the error output to show all metadata and allow for optional `exitOnReadError` logic. When this config property is set to true, the bot will terminate the program when a ping timeout occurs. This is intended for use with docker, k8s, or systemd environments where some management software will restart the discord-irc program or container automatically on exit.
MTF (Migrated from github.com) reviewed 2024-03-10 02:15:35 +00:00
Sign in to join this conversation.
No description provided.