From 16bfe64d1d5fa6ad54bed9c00c0791cd72804fbb Mon Sep 17 00:00:00 2001 From: Vinod Damle Date: Wed, 20 Mar 2019 13:46:27 -0400 Subject: [PATCH] rpc: increase server buffer size to 128kb Changes in #636 makes transaction size limit configurable up to a maximum of 128kb. RPC server creates a buffer to accept payload for a transaction, this change increases the size of the buffer to 128kb to match the maximum allowed in chain config --- rpc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/server.go b/rpc/server.go index 5d8b7329c..bd5f71d22 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -127,7 +127,7 @@ func (s *Server) serveRequest(ctx context.Context, codec ServerCodec, singleShot defer func() { if err := recover(); err != nil { - const size = 64 << 10 + const size = 128 << 10 buf := make([]byte, size) buf = buf[:runtime.Stack(buf, false)] log.Error(string(buf))