Skip to content

Commit 3dcb3e4

Browse files
authored
feat: optional compression for RPC responses (#6951)
1 parent 2cc54ee commit 3dcb3e4

5 files changed

Lines changed: 320 additions & 59 deletions

File tree

.config/forest.dic

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
270
1+
271
22
Algorand/M
33
API's
44
API/SM
@@ -245,6 +245,7 @@ TTY
245245
UI
246246
unclutter
247247
uncompress
248+
unparsable
248249
unrepresentable
249250
untrusted
250251
URL

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
### Fixed
4343

44+
- [#6951](https://github.com/ChainSafe/forest/pull/6951): Set the HTTP response compression threshold for the RPC server to 1 KiB. Configurable via `FOREST_RPC_COMPRESS_MIN_BODY_SIZE`; set a negative value to disable compression entirely. Small JSON-RPC responses such as `eth_chainId` are no longer gzip-encoded, yielding a large throughput and latency improvement on high-QPS workloads.
45+
4446
## Forest v0.33.0 "Patroclus"
4547

4648
Non-mandatory release with a couple of larger internal changes, especially around mempool and garbage collection. It also includes support for the new finality resolution mechanism. Also, a couple of fixes!

0 commit comments

Comments
 (0)