chrnx commented on issue Green-Tea/core#120 2026-10-10 17:05:24 +00:00
Mesh RPC over the control channel may hit the 1 MiB WebSocket default

Docs impact: guides/mesh.md in green-tea-docs still describes the 4,000,000-character frame check as the effective limit. With the #107 defaults, a mesh frame over 1 MiB is closed with 1009…

chrnx created pull request Green-Tea/core#122 2026-10-10 17:02:22 +00:00
chore(deps): clear dev-dependency audit advisories (16 -> 3)
chrnx pushed to chore/audit-dev-deps at Green-Tea/core 2026-10-10 17:02:10 +00:00
4c3b4d29c4 chore(deps): move the benchmark's fastify to 5.12.5
445738e830 chore(deps): override miniflare's undici and sharp to patched releases
352ba477b4 chore(deps): apply non-breaking dev-dependency audit fixes
Compare 3 commits »
chrnx created branch chore/audit-dev-deps in Green-Tea/core 2026-10-10 17:02:10 +00:00
chrnx opened issue Green-Tea/core#120 2026-10-10 16:55:49 +00:00
Mesh RPC over the control channel may hit the 1 MiB WebSocket default
chrnx opened issue Green-Tea/core#121 2026-10-10 16:55:49 +00:00
Intermittent mesh test timeouts (heartbeat, integration)
chrnx opened issue Green-Tea/core#118 2026-10-10 16:55:48 +00:00
maxParts: N rejects a body with exactly N parts (busboy off-by-one)
chrnx opened issue Green-Tea/core#119 2026-10-10 16:55:48 +00:00
Edge HTTP ignores cf-connecting-ip: ctx.ip is empty on workerd
chrnx deleted branch feature/fprd-001a from Green-Tea/core 2026-10-10 16:49:54 +00:00
chrnx pushed to develop at Green-Tea/core 2026-10-10 16:49:38 +00:00
4d1639f7c5 Merge pull request 'FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)' (#117) from feature/fprd-001a into develop
26bacdb304 fix(ws): bound inbound frames synchronously and all-or-nothing
7fa02d16be fix(ws): give every inbound consumer its own bounded queue
f78c9dc6fd fix(runtime): give ctx.ip the socket peer on Deno and Bun
ae60cd68a2 fix(http): enforce maxBodyBytes while reading fetch request bodies
Compare 9 commits »
chrnx merged pull request Green-Tea/core#117 2026-10-10 16:49:37 +00:00
FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)
chrnx commented on pull request Green-Tea/core#117 2026-10-10 16:46:15 +00:00
FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)

Follow-up verification on PR head 26bacdb: both findings from review 2 are resolved. (1) InboundFanout.accept() checks every subscriber for capacity before offering a frame, and the regression test confirms an overflow frame reaches neither the fast nor the stalled subscriber. (2) CHANNEL_TAP runs the bound inside adapter channel.push(), before the unbounded async channel can queue a burst. I repeated the real loopback createHttpServer probe with maxWsQueue: 2 and 2,000 frames in one write: close(1013) was called at frame 3 (previous head: frame 2,000). The remaining ws message events were parsed but not queued by Green Tea. Verified locally: 652 unit tests, Deno 34, Bun 24, edge, lint, format, typecheck, build, complexity, production audit (0 advisories), and clean diff. These two review findings are closed; this comment does not assess the separate PR open items.

chrnx commented on pull request Green-Tea/core#117 2026-10-10 16:42:53 +00:00
FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)

Both items from review 2 are fixed in 26bacdb.

(1) A rejected frame now reaches no consumer. accept() checks every consumer's capacity before delivering to any of them. Test: `maxWsQueue:…

chrnx pushed to feature/fprd-001a at Green-Tea/core 2026-10-10 16:42:44 +00:00
26bacdb304 fix(ws): bound inbound frames synchronously and all-or-nothing
chrnx commented on pull request Green-Tea/core#117 2026-10-10 16:34:07 +00:00
FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)

Follow-up review of 7fa02d1: the original two-consumer hang is fixed. Two gaps remain. (1) Must fix — src/http/ws-core.ts:138-142: accept() offers a frame to subscribers in order, then discovers a later subscriber's queue is full and closes 1013. With maxWsQueue=1, a fast and a stalled subscriber, the overflow frame was delivered to the fast subscriber while the slow one never received it. This lets a rejected frame trigger only some handler side effects. Check all subscriber capacity before delivering the frame, and test that the overflow frame reaches none. (2) Must fix — src/http/ws-core.ts:106-110 and src/http/ws.ts's nodeSocket: the bound check runs in an async pump after the unbounded channel() has accepted frames. The installed Node ws server emits messages synchronously by default; 100,000 synchronous pushes produced no close until the event loop yielded, then 1013. Enforce the bound at the synchronous adapter input, before an unbounded queue, and test a burst sent without yielding. All local gates passed at this head: 649 unit tests, Deno 34, Bun 24, edge, lint, format, typecheck, build, complexity, and production audit. Verdict: fix 1 and 2 before merge.

chrnx commented on pull request Green-Tea/core#117 2026-10-10 16:23:53 +00:00
FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)

Fixed in 7fa02d1. boundInbound now gives each inbound iterator its own queue, and maxWsQueue bounds each queue. One consumer's return() no longer ends the others. Frames that arrive before…

chrnx pushed to feature/fprd-001a at Green-Tea/core 2026-10-10 16:23:45 +00:00
7fa02d16be fix(ws): give every inbound consumer its own bounded queue
chrnx commented on pull request Green-Tea/core#117 2026-10-09 19:13:01 +00:00
FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)

What this change does: adds bounds and safety checks across static serving, HTTP body reads, WebSocket handling, and runtime adapters. Must fix before merge: src/http/ws-core.ts:83-84,113-119 returns the same InboundFifo for every @inbound() iterator, and a second pending next() overwrites the first waiter. A handler with two consumers waiting for one frame hangs one consumer forever; sequential consumers split frames instead of receiving the previous channel's fan-out. I reproduced the hang on PR head f78c9dc with two iterators and one pushed frame. Preserve bounded fan-out for each subscriber, or explicitly reject a second consumer as a documented breaking change; add a two-consumer regression test. The 89 focused tests passed but cover only one consumer. Verdict: fix this before merge.

chrnx created pull request Green-Tea/core#117 2026-10-09 19:00:51 +00:00
FPRD-001a: core safety and adapter correctness (#104 #105 #106 #107 #108 #116)
chrnx pushed to feature/fprd-001a at Green-Tea/core 2026-10-09 19:00:34 +00:00
f78c9dc6fd fix(runtime): give ctx.ip the socket peer on Deno and Bun
ae60cd68a2 fix(http): enforce maxBodyBytes while reading fetch request bodies
0540bef07b feat(ws)!: bound inbound WebSocket message size and queue
59763c9af5 fix(ws): reject malformed upgrades instead of crashing the server
1069c727c8 fix(http): catch failures at the Node request-listener boundary
Compare 6 commits »