qt6-bb10/tests/auto/network/access/qnetworkreply
Mårten Nordheim 5a47939d5c tst_QNetworkReply: Avoid race in ioGetFromHttpWithAuth
Our authentication code is race-y by design:
1. When two requests are fired off and queued at the same time in the
same QHttpNetworkConnection then if one of them encounters
"authentication required" then it will copy whatever credentials it got
to all the other channels in the connection. This is likely what the
first part of the test is testing.
2. If a later request is fired off and it includes credentials in the
url then the newly included credentials should be used instead of the
cached ones.

The race here can occurr when one socket either takes too long to
connect or the connected signal is not received early enough. Then the
first socket is used for both requests and then we can hit case #2 when
the url contains credentials.

Pick-to: 5.15
Change-Id: I646a5378d8c1256b2de98b51912953df29f68cb2
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2020-09-11 11:30:57 +02:00
..
certs Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-25 15:47:42 +02:00
echo CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
test CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
.gitattributes
.gitignore
BLACKLIST Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
bigfile
element.xml
empty
image1.jpg
image2.jpg
image3.jpg
index.html
qnetworkreply.pro Remove winrt 2020-06-06 20:25:49 +02:00
qnetworkreply.qrc
resource
rfc3252.txt
smb-file.txt
testserver_index.html Rework QNetworkReply tests to use docker-based test servers 2018-07-27 17:40:27 +00:00
tst_qnetworkreply.cpp tst_QNetworkReply: Avoid race in ioGetFromHttpWithAuth 2020-09-11 11:30:57 +02:00