Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed random blocking of async server
- asynchronous and multi-thread programming is hard - race conditions could be difficult to track - I spent a lot of time on this issue, which was reproduced using the wrk tool and a lot of concurrent connections for a long time - it was more easily reproduced on Windows, but could potentially affect all platforms, and may be the culprit of very rare race condition on other platforms like Linux (seen e.g. on TFB) - in fact, it was a one-liner - as often with race conditions :) - just move one flag assignment at the right place
- Loading branch information