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 <paul.wicking@qt.io>
This commit is contained in:
Mate Barany 2024-06-24 15:05:38 +02:00
parent 704362f3dd
commit 22f67be5f2

View File

@ -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