fix: increase websocket read limit to 1MB

This commit is contained in:
Meta-Repo Bot 2026-01-21 04:57:56 +00:00
parent e3c6d6c1fb
commit 494646b16c

View file

@ -72,6 +72,9 @@ func (b *Bot) connect(ctx context.Context) error {
return fmt.Errorf("connecting to matterbridge: %w", err)
}
// Increase read limit to 1MB to handle large Matrix messages
conn.SetReadLimit(1024 * 1024)
b.mu.Lock()
b.conn = conn
b.mu.Unlock()