Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch static variable to thread_local to fix underflow bug
Multiple threads appear to be running through `read_callback` with their own data, and they're fighting over the `sentSoFar` variable. Switching it from static to thread_local makes sure each thread has its own copy to use.
- Loading branch information