From 5c726cfe255a2ea50c2a1c8e5d0f893e60eb451a Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 19 Oct 2020 15:14:47 +0300 Subject: [PATCH] etcdserver: Fix 64 KB websocket notification message limit This fixes etcd being unable to send any message longer than 64 KB as a notification over the websocket. This was because the older version of grpc-websocket-proxy was used and WithMaxRespBodyBufferSize option wasn't set. --- embed/serve.go | 1 + 1 file changed, 1 insertion(+) diff --git a/embed/serve.go b/embed/serve.go index 45d73dfc2..5818435a2 100644 --- a/embed/serve.go +++ b/embed/serve.go @@ -275,6 +275,7 @@ func (sctx *serveCtx) createMux(gwmux *gw.ServeMux, handler http.Handler) *http. return outgoing }, ), + wsproxy.WithMaxRespBodyBufferSize(0x7fffffff), ), ) }