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
Browse filesBrowse the repository at this point in the historyBrowse files
Danilo Resende
committed
Handle context between two async requests
When using `req.miniprofiler` to track the miniprofiler extension, two
requests can dispute this resource where the reference will always point
to the last request.
So a scenario with async timings, the first request can endup using
`req.miniprofiler` that points to the second request extension.
(Check the tests to see a scenario simulation)
Using NodeJS "async_hooks" we can track the reference to the correct
extension for each request.
Related to: MiniProfiler#4
0 commit comments