qt5base-lts/tests/auto/network
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
..
access tst_QNetworkReply: Avoid race in ioGetFromHttpWithAuth 2020-09-11 11:30:57 +02:00
kernel Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
selftest Revert "Disable tests with qemu-arm & developer-build configurations in the CI" 2020-06-05 12:10:07 +02:00
socket Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
ssl Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
.prev_CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
network.pro QtNetwork: Delete bearer management 2020-04-05 16:41:08 +02:00