clusterfk / chaos-proxy

ClusterFk Chaos Proxy is an unreliable HTTP proxy you can rely on; a lightweight tool designed for chaos testing of microservices.
http://clusterfk.it
GNU General Public License v3.0
97 stars 11 forks source link

Make ChaosService more thread-safe #5

Closed piomar123 closed 4 years ago

piomar123 commented 4 years ago

A single ChaosService instance has been shared among multiple threads but it's internal state was used to exchange data with the ChaosController. It caused some responses to contain incorrect data.

In this change, an additional structure ChaosResult is used to return values to the service.