View Full Version : QNetworkAccessManager and QNetworkReply::OperationCanceledError

30th August 2015, 07:01

i'm using a QNAM object to fetch a file over https. after the request it's required some time to compose an answer, usualy about a minute. this is a timing diagram (https://yadi.sk/i/8L3v0mB6ik8xM) of the request execution in firefox, request completes successfully. but when i try to query it using QNAM::get method, it returns in about 15 seconds, and QNetworkReply::error() returns 5 (OperationCanceledError). is there a way to manage request timeout?

i tried to set request header "Keep-Alive: timeout=120" but it changed nothing of course.

28th September 2015, 13:47
looks like there is no way for this. i had to use libcurl.