kytos-ng / sdntrace

Napp that traces OpenFlow paths in the dataplane
https://kytos-ng.github.io/api/sdntrace.html
GNU Lesser General Public License v3.0
0 stars 5 forks source link

`TraceManager` has shared resources vulnerable to race conditions #9

Open viniarck opened 2 years ago

viniarck commented 2 years ago

TraceManager has some shared resources, such as _id that's vulnerable to race conditions, in this part for instance, since method is used in the PUT /trace endpoint that can have multiple threads entering, and if they hit the same increment one of the ids will be overwritten. We'll need to protect this shared resource access.