qt5base-lts/tests/auto/network
Timur Pocheptsov e4c1feae5c Implement 'preconnect-https' and 'preconnect-http' for H2
QNetworkAccessManager::connectToHostEncrypted()/connectToHost()
creates 'fake' requests with pseudo-schemes 'preconnect-https'/
'preconnect-http'. QHttp2ProtocolHandler should handle this
requests in a special way - reporting them immediately as
finished (so that QNAM emits finished as it does in case of
HTTP/1.1) and not trying to send anything.
We also have to properly cache the connection - 'https' or
'http' scheme is too generic - it allows (unfortunately)
mixing H2/HTTP/1.1 in a single connection in case an attribute
was missing on a request, which is wrong.
h2c is more complicated, since it needs a real request
to negotiate the protocol switch to H2, with the current
QNetworkHttpConnection(Channel)'s design it's not possible
without large changes (aka regressions and new bugs introduced).

Auto-test extended.

Fixes: QTBUG-77082
Change-Id: I03467673a620c89784c2d36521020dc9d08aced7
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-07-24 16:03:02 +02:00
..
access Implement 'preconnect-https' and 'preconnect-http' for H2 2019-07-24 16:03:02 +02:00
bearer Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
kernel Populate test data for reverse lookups using system tools 2019-04-05 05:50:18 +00:00
socket Windows: handle errors correctly when connecting to unreachable host 2019-07-11 10:46:23 +02:00
ssl Revert "Temporarily skip tst_QSslSocket::resume" 2019-07-03 13:04:54 +02:00
network.pro Re-enable network tests on Mac OS. 2012-04-24 16:06:28 +02:00