mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 22:35:52 +01:00
appservice/websocket: override read limit
This commit is contained in:
parent
f8c3a95de7
commit
bcd0a70bdf
1 changed files with 1 additions and 0 deletions
|
|
@ -412,6 +412,7 @@ func (as *AppService) StartWebsocket(ctx context.Context, baseURL string, onConn
|
|||
}
|
||||
})
|
||||
}
|
||||
ws.SetReadLimit(50 * 1024 * 1024)
|
||||
as.ws = ws
|
||||
as.StopWebsocket = stopFunc
|
||||
as.PrepareWebsocket()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue