You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 073b5ba
Browse filesBrowse the repository at this point in the historyBrowse files
fix(event_handler): clear context when route resolution raises (#8539)
resolve() and resolve_async() only cleared the routing context after a
response was built, so an exception escaping a route handler left the
previous invocation's context in place, including the cached Request.
A warm Lambda container could then hand that stale Request to the next
invocation.
Clear the context in a finally block instead. The ALB response size
validation no longer needs its own clean-up on error, and the JWT
middleware test now expects the whole context to be gone after a
failing handler rather than only the claims.
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>
0 commit comments