-
Notifications
You must be signed in to change notification settings - Fork 0
Concurrency #12
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Currently there is a potential issue, especially when using the async SendCommand methods, where two commands could be written to the underlying stream at the same time, causing the message to become garbled. To fix this, a mutex or semaphore could be used to ensure proper concurrent use of the StreamWriter. Consider using TextWriter.Synchronized for this purpose.