8000 rpc: lower the memory consumption with fasthttp rpc server by yoomee1313 · Pull Request #1650 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

rpc: lower the memory consumption with fasthttp rpc server #1650

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions networks/rpc/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ func NewFastHTTPServer(cors []string, vhosts []string, timeouts HTTPTimeouts, sr
WriteTimeout: timeouts.WriteTimeout,
IdleTimeout: timeouts.IdleTimeout,
MaxRequestBodySize: common.MaxRequestContentLength,
ReduceMemoryUsage: true,
StreamRequestBody: true,
}
}
}
Expand Down Expand Up @@ -280,6 +282,8 @@ func NewFastHTTPServer(cors []string, vhosts []string, timeouts HTTPTimeouts, sr
WriteTimeout: timeouts.WriteTimeout,
IdleTimeout: timeouts.IdleTimeout,
MaxRequestBodySize: common.MaxRequestContentLength,
ReduceMemoryUsage: true,
StreamRequestBody: true,
}
}

Expand Down
0