Skip to content
Commit Detail

Commit 7863761

Author
Aaron Loyd <aloyd@cloudflare.com> 2025-04-22 00:10:33 -0500
Parents
dce5cf8
Tree
0cffc27
Return abort exception error through promise in IoContext::run()

In WorkerEntrypoint::request, we set up draining as part of the returned promise.
But if an exception is thrown by IoContext::run separately from the returned promise,
the IncomingRequest is dropped during unwinding without draining! Now exceptions are
returned through the promise instead of being thrown.

Files changed

1 file changed~1 modified