From 2ff0733f4a73ae801f20101a1f04f057d2637dee Mon Sep 17 00:00:00 2001 From: Anuj Chaudhari Date: Thu, 21 Nov 2024 07:25:15 -0800 Subject: [PATCH] Increases the GraphQL subscription client buffer size to 1MB to handle larger event chunks (#220) Co-authored-by: Marin Dzhigarov --- client/hub/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/hub/request.go b/client/hub/request.go index 6667550c..e78e3d2f 100644 --- a/client/hub/request.go +++ b/client/hub/request.go @@ -96,7 +96,7 @@ func (c *hubClient) Subscribe(ctx context.Context, req *Request, handler EventRe eventChan := make(chan EventResponse) errChan := make(chan error) - reader := sse.NewEventStreamReader(httpResp.Body, 1024) + reader := sse.NewEventStreamReader(httpResp.Body, 1024*1024) go func() { errChan <- waitForEvents(reader, eventChan)