You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mesh: MeshConfig.maxInflightPerPeer on the teapot #98
A teacup that times out an RPC never cancels it on the teapot, so one peer can pile up unbounded work.
Do: cap concurrent RPCs per authenticated peer on the teapot; over the cap, answer 503 + retry-after. Cancellation of timed-out work is the cancel-frame issue.
The in-flight counters are reused by the least-inflight balancing strategy.
Scope: @experimental exports, MeshConfig, mesh:* events and the /__mesh__ prefix only (D19).
Where: jarvis, docker run --cpuset-cpus 6,7,14,15 --user 1000:1000 node:22 (sha256:7c400d78…), Deno 2.9.8 and Bun 1.4.4 in the same image. Harness bench/compare.ts with the new mesh rpc (1 remote step) case; 100 connections.
Request path: every case within noise on all three runtimes. The week did not touch it.
Mesh RPC, whole week: Node −4.3%, Deno −6.3%, Bun −2.7% (separated; Node A/A −1.2%). Fixed in perf(mesh): win back the mesh RPC throughput #97 cost #116; after it, vs the same base: Node +0.6%, Deno −1.4%, Bun −0.6% (all overlapping).
Activity
chrnx-dev commentedon Nov 30, 2026
Regression benchmark (2026-11-30)
docker run --cpuset-cpus 6,7,14,15 --user 1000:1000 node:22(sha256:7c400d78…), Deno 2.9.8 and Bun 1.4.4 in the same image. Harnessbench/compare.tswith the newmesh rpc (1 remote step)case; 100 connections.46e0bc9(develop before the week) vs20f5094(after feat(mesh): connect teapots in parallel at boot #112–feat(mesh): cap concurrent RPCs per peer on the teapot #115). Full suite Node 3 × 10 s, Deno and Bun 3 × 5 s; then a bisect per merge, mesh only, Node 5 × 10 s.handleRpc'sfinally(one promise less per call); measured as part of the fix above.Full method, tables and bisect: https://github.com/Expressive-Tea/green-tea/blob/develop/bench/results/mesh-week1-46e0bc9-20f5094/README.md