Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
VCR's rack middleware is not threadsafe #58
VCR as a whole is not threadsafe. It wasn't built with threadsafety in mind as it was meant to be used in a test environment.
This was fine until you start using the provided rack middle ware in a development environment where a browser makes multiple HTTP requests in parallel to your rack app...your server may have multiple threads servicing the requests, and as such, the lack of thread safety causes problems.
The easy solution for now is to put a mutex around
Down the road it might be worthwhile to make VCR threadsafe, but I don't think it's worth the effort right now.