Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Race condition happens in HttpRequest if you modify reference count in two threads #19169
In version 3.*, you still change request's reference count in networkThread when dequing the request from s_requestQueue. So there is also possible race conditions if the upper caller code is similar to below with request->release()
Our temporary fix is to remove both the request->release() in main thread and the retain in send().
HttpRequest* request = new HttpRequest();