diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-02-20 10:34:47 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-03-08 14:14:26 +0000 |
commit | 8b9d246225dcd63900399297b0fd553918840bea (patch) | |
tree | 9d6e66e3184619a22735d3a8173a81f7ce98159c /src/tools/qlalr/recognizer.cpp | |
parent | 9e7d76946270216d46c8cf0d02427ca3c2109de3 (diff) |
QHttpNetworkConnection: fall back gracefully to HTTP/1.1
Both SPDY and HTTP/2 work with a single qhttpnetworkchannel (and this means one
socket per qhttpnetworkconnection). Normally, HTTP/1.1 connection is using up to 6
channels/sockets though. At the moment a failure to negotiate SPDY/HTTP/2 leaves us
with a downgraded HTTP/1.1 connection (with only one channel vs. default 6).
Since we initialize channels (and establish connections) in a 'lazy' manner
it's ok to pre-allocate all 6 channels and then either use 1 (if SPDY/HTTP/2
indeed was negotiated) or switch back to 6 in case of failure.
Change-Id: Ia6c3061463c4d634aaed05ce0dde47bfb5e24dd8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/tools/qlalr/recognizer.cpp')
0 files changed, 0 insertions, 0 deletions