From 22f67be5f218beaacb53e5ab6cfaac092d73f714 Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Mon, 24 Jun 2024 15:05:38 +0200 Subject: [PATCH] Add a note to QNAM that RFC 2616 8.2.2. is not handled properly Warn the user that we do not react to incoming data until we have finished writing. Task-number: QTBUG-114812 Change-Id: I533c23d0fbefd2accddd63bc9a3b384e2a5899b0 Reviewed-by: Paul Wicking --- src/network/access/qnetworkaccessmanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/network/access/qnetworkaccessmanager.cpp b/src/network/access/qnetworkaccessmanager.cpp index b371730c3c2..610491e5709 100644 --- a/src/network/access/qnetworkaccessmanager.cpp +++ b/src/network/access/qnetworkaccessmanager.cpp @@ -205,6 +205,11 @@ static void ensureInitialized() Currently, for the HTTP protocol on desktop platforms, 6 requests are executed in parallel for one host/port combination. + \note QNetworkAccessManager doesn't handle RFC 2616 Section 8.2.2 properly, + in that it doesn't react to incoming data until it's done writing. For + example, the upload of a large file won't stop even if the server returns + a status code that instructs the client to not continue. + A more involved example, assuming the manager is already existent, can be: \snippet code/src_network_access_qnetworkaccessmanager.cpp 1