QNetworkAccessManager cache
Unsolved
General and Desktop
-
Re: Memory Leak on QNetworkAccessManager
baceuse QNetworkAccessManager::clearAccessCache close QNetworkAccessManager`s thread,call this func can clear cache memery, but all runnning qnetworkreply may lost;
in QNetworkAccessManagerprivate :
// this cache can be used by individual backends to cache e.g. their TCP connections to a server
// and use the connections for multiple requests.
QNetworkAccessCache objectCache;
objectCache not thread safeso for async new QNetworkAccessManager to every qnetworkrequest. one to one may solve the problem.