Commit Detail
Commit 0c9056f
JSRPC: Fix returning RPC stream as HTTP response body. If, in an HTTP handler, you fetched a ReadableStream over RPC, and then used that ReadableStream as your HTTP response, the stream would be prematurely canceled. The problem is that the system thinks deferred proxying is possible, since we're pumping from a system stream. So, it shuts down the IoContext, thinking that no more JavaScript needs to run. However, the IoContext itself holds open the RPC context; canceling it breaks the stream. In the future we should solve this properly s othat deferred proxying is possible. For now, we simply block deferred proxying of RPC streams.
Files changed
2 files changed~2 modified