Open RobertCraigie opened 2 years ago
Hi @RobertCraigie, I have a question related to this. I have observed that spawning multiple threads, each with its own client, sometimes generates a collision with an already open port. I had difficulties reproducing this, I guess it is a race condition produced when all of them attempt to create a connection at the same time.
The above could be easily solved with a semaphore, but I wonder if the client itself is thread safe, e.g. the same open client can be passed and used by multiple threads simultaneously, or are there stateful events in the client object that could result in a race condition?
Thanks!
Bug description
If binaries are missing, the CLI will naively attempt to download them, this can lead to OS errors if multiple processes are started at once.
How to reproduce
Ful reproduction is still in progress.
Encountered stack trace:
Expected behavior
No errors.
Environment & setup