I'm not sure whether this is related. But, looking at this:
void HttpClientQtThread::run() { QNetworkAccessManager* manager = new QNetworkAccessManager();
QNetworkRequest request(url_); for (auto const& hdr: headers_) { request.setRawHeader(QString::fromStdString(hdr.first).toUtf8(), QString::fromStdString(hdr.second).toUtf8()); }
QNetworkReply* reply = manager->get(request); reply->setReadBufferSize(0); // unlimited buffer
The reply is being used without checking that it was created succesfully. Shouldn't there be a call to error here? Something like
if (reply->error() != QNetworkReply::NoError)
I'm not sure whether this is related. But, looking at this:
void HttpClientQtThr ead::run( ) essManager* manager = new QNetworkAccessM anager( );
{
QNetworkAcc
QNetworkRequest request(url_);
request. setRawHeader( QString: :fromStdString( hdr.first) .toUtf8( ), QString: :fromStdString( hdr.second) .toUtf8( ));
for (auto const& hdr: headers_)
{
}
QNetworkReply* reply = manager- >get(request) ; >setReadBufferS ize(0); // unlimited buffer
reply-
The reply is being used without checking that it was created succesfully. Shouldn't there be a call to error here? Something like
if (reply->error() != QNetworkReply: :NoError)