qt5base-lts/tests/auto/network/access
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
..
hpack CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
hsts CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
http2 QDecompressHelper: Introduce zstd support 2020-08-14 13:17:11 +02:00
qabstractnetworkcache Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
qdecompresshelper QDecompressHelper: Introduce zstd support 2020-08-14 13:17:11 +02:00
qhttpnetworkconnection CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qhttpnetworkreply Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
qnetworkaccessmanager CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qnetworkcachemetadata CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qnetworkcookie CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qnetworkcookiejar CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qnetworkdiskcache Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
qnetworkreply tst_QNetworkReply: Avoid race in ioGetFromHttpWithAuth 2020-09-11 11:30:57 +02:00
qnetworkrequest CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
access.pro Remove QFtp sources etc. in favor of alternate distribution 2020-08-27 18:58:21 +02:00
CMakeLists.txt Remove QFtp sources etc. in favor of alternate distribution 2020-08-27 18:58:21 +02:00