mirror of https://github.com/poanetwork/quorum.git
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
This commit is contained in:
parent
5e9ff6d522
commit
16bfe64d1d
|
@ -127,7 +127,7 @@ func (s *Server) serveRequest(ctx context.Context, codec ServerCodec, singleShot
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := recover(); err != nil {
|
if err := recover(); err != nil {
|
||||||
const size = 64 << 10
|
const size = 128 << 10
|
||||||
buf := make([]byte, size)
|
buf := make([]byte, size)
|
||||||
buf = buf[:runtime.Stack(buf, false)]
|
buf = buf[:runtime.Stack(buf, false)]
|
||||||
log.Error(string(buf))
|
log.Error(string(buf))
|
||||||
|
|
Loading…
Reference in New Issue