Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

direct client websocket connection does not guarantee thread safety #15

Open
mariobassem opened this issue Feb 26, 2023 · 0 comments
Open

Comments

@mariobassem
Copy link
Contributor

had an issue with terraform while trying to concurrently write on the direct client websocket connection. after some investigation with @ashraffouda, we found that the websocket connection used by the direct client should not be used by more than one go routine concurrently to perform read operations, and no more than one go routine to perform write operations, this is mentioned here
i tried to wrap the write method with locks, and the issue disappeared.
Screenshot from 2023-02-26 17-27-24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant