From b9fb7433959eae7c720e826af13417a9e82ca676 Mon Sep 17 00:00:00 2001 From: Jaz Volpert Date: Mon, 23 Oct 2023 17:44:54 +0000 Subject: [PATCH] Use a 4MiB buffer for event stream connections instead of 10KiB --- bgs/bgs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgs/bgs.go b/bgs/bgs.go index 9c1eec8a4..f0740a4a6 100644 --- a/bgs/bgs.go +++ b/bgs/bgs.go @@ -517,7 +517,7 @@ func (bgs *BGS) EventsHandler(c echo.Context) error { defer cancel() // TODO: authhhh - conn, err := websocket.Upgrade(c.Response(), c.Request(), c.Response().Header(), 10<<10, 10<<10) + conn, err := websocket.Upgrade(c.Response(), c.Request(), c.Response().Header(), 4<<20, 4<<20) if err != nil { return fmt.Errorf("upgrading websocket: %w", err) }