Unsolved Which QNetworkReply error for connection timeout ?
I am trying to catch in a similar way connection timeout error when sending a request to a non-existing server between MinGW and WASM in the
Here are the results of the tests I have made (request to a non-existing server) :
With QNetworkAccessManager::setTransferTimeout(3000) :
We can see that there is not a common error.
My question is, how could I differentiate a timeout error and a server who return an error ?
I am using Qt 5.15.2
I just saw that a
QNetworkReply::TimeoutErrorcode exists. Shouldn't this code be set when a timeout occurred ? Is this a bug or did I misunderstand something ?