fastify / fastify/aws-lambda-fastify
decorateRequest is not thread safe
Open
- Dominant language
- JavaScript
- Stars
- 559
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Due to the way the code for `decorateRequest` is written, when multiple requests are executed concurrently the [`currentAwsArguments` cache variable](https://github.com/fastify/aws-lambda-fastify/blob/main/index.js#L22) will clash and overwrite wrong event and context data between the simultaneous requests.
Contributor guide
Assessment
This issue has not been assessed yet.