-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
area:runtime-nodeArea: Node runtime bridgeArea: Node runtime bridgebugSomething isn't workingSomething isn't workingpriority:p2Priority P2 (medium)Priority P2 (medium)
Milestone
Description
Summary
Both NodeBridge and OptimizedNodeBridge write to stdin without handling backpressure (write() return false). Large/rapid requests can fill the pipe buffer and cause memory pressure or dropped writes.
Failure mode
stdin.writereturns false and data queues without flow control.- Under load, memory grows or writes fail unpredictably.
Repro (adversarial)
- Send a burst of large payloads (e.g., 1000 requests with large args) and observe
stdin.writereturning false. - Check for memory growth or rejected writes.
Acceptance criteria
- If
stdin.writereturns false, wait fordrainbefore sending more data. - Clear error messaging if the pipe is closed.
- Adversarial stress test confirms no unbounded memory growth or dropped writes.
Metadata
Metadata
Assignees
Labels
area:runtime-nodeArea: Node runtime bridgeArea: Node runtime bridgebugSomething isn't workingSomething isn't workingpriority:p2Priority P2 (medium)Priority P2 (medium)