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
Fix: request counter race for concurrent requests matching the same interaction (#46)
For each interaction, we keep track of the number of times it has been
called.
That counter can be used in the modifiers to change the response
returned to the client. For example it is possible to change the return
status on the 2nd invocation of a specific interaction.
The code has a bug when concurrent requests happen for the same
interaction.
The change modifies the way the concurrency is managed just for the
request counter.
As part of this change, we have added a new test that can be used to
prove that the original code has the issue and the proposed version
fixes it.
Co-authored-by: Andrea Rosa <andrea.rosa@form3.tech>
Co-authored-by: Shreya Garge <shreya.garge@form3.tech>
0 commit comments