fix: increase websocket read limit to 1MB
This commit is contained in:
parent
e3c6d6c1fb
commit
494646b16c
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue