Which QNetworkReply error for connection timeout ?
Unsolved
Qt for WebAssembly
-
Hello,
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
QNetworkAccessManager::finished
signal.Here are the results of the tests I have made (request to a non-existing server) :
With QNetworkAccessManager::setTransferTimeout(3000) :
MinGW :
QNetworkReply::OperationCanceledError
WASM :QNetworkReply::ProtocolFailure
Without
MinGW :
QNetworkReply::UnknownNetworkError
WASM :QNetworkReply::ContentNotFoundError
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