From 52f471e23e8bb226b620acf4a81d56293d9a9fb0 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 27 Aug 2024 17:50:06 +0200 Subject: [PATCH] QNetworkRequest: document the new saturation behavior of transferTimeout() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1b8b57c76f41e36ad14fff9c52f0c346f83426ed Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit 4403b6561b91c7435186116265b6e59e81c7ce03) Reviewed-by: Qt Cherry-pick Bot --- src/network/access/qnetworkrequest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index 2fb467d3a85..6a266f86519 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -1041,7 +1041,10 @@ void QNetworkRequest::setDecompressedSafetyCheckThreshold(qint64 threshold) Returns the timeout used for transfers, in milliseconds. - \sa setTransferTimeout() + If transferTimeoutAsDuration().count() cannot be represented in \c{int}, + this function returns \c{INT_MAX}/\c{INT_MIN} instead. + + \sa setTransferTimeout(), transferTimeoutAsDuration() */ /*!