Downloading a File with QNetworkAccessManager is 30 Times Slower than It Should Be
Unsolved
General and Desktop
-
This is the code I'm using
QElapsedTimer* timer = new QElapsedTimer; timer->start(); QNetworkAccessManager* manager = new QNetworkAccessManager; QObject::connect(manager, &QNetworkAccessManager::finished, this, [=](QNetworkReply* reply) { cout << timer->elapsed(); } }); std::string urlS = "https://someUrl/file.zip"; QNetworkRequest req(QUrl(QString::fromStdString(urlS))); manager->get(req);
It takes about 150 seconds to download my file that way, while downloading it any other way (chrome, postman, curl, libcurl) takes 5 seconds. I guess it has something to do with tls because while experimenting I noticed the problem only happens for https requests.
I'm using Qt 6.2.2 on windows and the tls dlls I'm using are the ones that are installed by the qt installer.