EW-10529 Route OutgoingFactory subrequests through getSubrequestNoChecks#6513
EW-10529 Route OutgoingFactory subrequests through getSubrequestNoChecks#6513harrishancock wants to merge 1 commit intomainfrom
Conversation
|
The generated output of |
|
I now have a complete understanding of the change. Let me summarize my analysis: What the PR does:
Analysis: The change is well-structured. The two factories that were previously constructing
Both use The callback parameters ( The actor factories ( The documentation comments are accurate and helpful, clearly stating the contract. I don't see any actionable issues — the change is correct, well-scoped, and the documentation additions are valuable. LGTM |
|
PR will need to be rebased on |
TcpPortOutgoingFactory (containers) and StreamOutgoingFactory (TCP sockets) constructed WorkerInterface instances directly, bypassing getSubrequestNoChecks() and missing the external memory adjustment that pressures V8's GC. Route them through getSubrequestNoChecks() so they get the same accounting as other subrequest types. Also add comments on OutgoingFactory, CrossContextOutgoingFactory, getSubrequestNoChecks(), getCapnpChannel(), and getClientWithTracing() documenting the contract: implementations that create HTTP connections should route through getSubrequestNoChecks() internally. Assisted-by: Claude
0f2add6 to
d679549
Compare
|
Rebased on main. |
TcpPortOutgoingFactory (containers) and StreamOutgoingFactory (TCP sockets) constructed WorkerInterface instances directly, bypassing getSubrequestNoChecks() and missing the external memory adjustment that pressures V8's GC. Route them through getSubrequestNoChecks() so they get the same accounting as other subrequest types.
Also add comments on OutgoingFactory, CrossContextOutgoingFactory, getSubrequestNoChecks(), getCapnpChannel(), and getClientWithTracing() documenting the contract: implementations that create HTTP connections should route through getSubrequestNoChecks() internally.
Assisted-by: Claude