tifroz
tifroz
The race condition occurs on the '*_totalBytesWritten += length;*' line of '*- (void)didWriteBytes:(const void*)bytes length:(NSUInteger)length {}*' I could consistently reproduce the racing condition while streaming content from GCDServer (Async headers...
In the demo `ViewController.swift`, replace the definition for `webServer` and for `viewWillAppear` like so. Then `GET "/"` (e.g. `curl http://[gcdServerAddress]:8080/`) ``` var webServer: GCDWebServer! override func viewWillAppear(_ animated: Bool) {...
The code above reproduced the issue for me without fault (with the `Thread Sanitizer` turned on ). Let me know if you can't reproduce / need me to make adjustments...
@swisspol did you get a chance to look at this? I was about to create another PR to address issues detected by the static analyzer but I don't think I...
There could be other issues, but one thing that jumped at me looking at your code, is that you are enabling `syncAutomatically` by default before the migration. It is a...