Skip to content
Commit Detail

Commit 64ccc29

Author
Felix Hanau <felix@cloudflare.com> 2026-04-09 12:02:28 -0400
Parents
e899a92
Tree
1e637ac
Improve event outcome handling

This includes a number of smaller changes to provide better event outcome
handling and more closely correspond to the edge runtime behavior.
- In server.c++, report exceededMemory and responseStreamDisconnected outcomes
  properly. This should cover all outcomes that can be reported using exceptions
  in workerd so far
- Return a 503 error for overloaded-type exceptions - matches what we already do
  in WorkerEntrypoint::request()
- Add a missing exception detail to ensure actor-cache exception leads to
  memoryExceeded outcome
- Simplify reportFailure() calls based on FailureSource::OTHER being the default
  value for the 2nd parameter

Files changed

3 files changed~3 modified