Skip to content

Commit

Permalink
Use a 4MiB buffer for event stream connections instead of 10KiB
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Oct 23, 2023
1 parent d4dfa2e commit b9fb743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgs/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b9fb743

Please sign in to comment.