diff options
Diffstat (limited to 'src/network')
| -rw-r--r-- | src/network/access/qnetworkaccessmanager.cpp | 13 | ||||
| -rw-r--r-- | src/network/android/jar/build.gradle | 2 | ||||
| -rw-r--r-- | src/network/kernel/qauthenticator.cpp | 2 | ||||
| -rw-r--r-- | src/network/kernel/qauthenticator.h | 2 |
4 files changed, 16 insertions, 3 deletions
diff --git a/src/network/access/qnetworkaccessmanager.cpp b/src/network/access/qnetworkaccessmanager.cpp index 6428653de26..66bb65685fa 100644 --- a/src/network/access/qnetworkaccessmanager.cpp +++ b/src/network/access/qnetworkaccessmanager.cpp @@ -216,6 +216,19 @@ static void ensureInitialized() can be: \snippet code/src_network_access_qnetworkaccessmanager.cpp 1 + Since Qt 6.11 the defaults of the TCP Keepalive parameters used by + QNetworkAccessManager have been changed. With the current settings + the connection will be terminated after 2 minutes of inactivity. + + These settings can be changed the individual requests, to make + them more lenient, or even more aggressive via the QNetworkRequest API. + \snippet http/httpwindow.cpp qnam-tcpkeepalive + + In the above snippet we are picking a more aggressive strategy, to + terminate the connection after thirty seconds of inactivity. This can + be useful, for example, in early detection of network hangs caused + by network changes on Linux. + \sa QNetworkRequest, QNetworkReply, QNetworkProxy */ diff --git a/src/network/android/jar/build.gradle b/src/network/android/jar/build.gradle index f1f470b6635..580e15b92f6 100644 --- a/src/network/android/jar/build.gradle +++ b/src/network/android/jar/build.gradle @@ -23,7 +23,7 @@ repositories { } android { - compileSdk 35 + compileSdk 36 defaultConfig { minSdkVersion 28 diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index 2ef1c31ce1c..7be1d7fe3aa 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -365,7 +365,7 @@ bool QAuthenticator::isNull() const state. */ -void QAuthenticator::clear() noexcept +void QAuthenticator::clear() { *d = QAuthenticatorPrivate(); d->phase = QAuthenticatorPrivate::Done; diff --git a/src/network/kernel/qauthenticator.h b/src/network/kernel/qauthenticator.h index db309fb87ad..c4993ff0fc7 100644 --- a/src/network/kernel/qauthenticator.h +++ b/src/network/kernel/qauthenticator.h @@ -44,7 +44,7 @@ public: bool isNull() const; void detach(); - void clear() noexcept; + void clear(); private: friend class QAuthenticatorPrivate; QAuthenticatorPrivate *d; |
