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
The bodyEncoders map is not thread safe. If encoders are registered in parallel, this line can cause a fatal "concurrent map writes" error. I discovered this due to having parallel tests that each used a new instance of my rest server.
This is likely low priority as this should't really ever happen in production code, but it's probably still worth making this map thread safe by adding a read-write mutex to guard all functions that access that map.
The text was updated successfully, but these errors were encountered:
The bodyEncoders map is not thread safe. If encoders are registered in parallel, this line can cause a fatal "concurrent map writes" error. I discovered this due to having parallel tests that each used a new instance of my rest server.
This is likely low priority as this should't really ever happen in production code, but it's probably still worth making this map thread safe by adding a read-write mutex to guard all functions that access that map.
The text was updated successfully, but these errors were encountered: