QHttpNetworkConnection : Fix the case when we only have one channel
authorMartin Petersson <martin.petersson@nokia.com>
Wed, 24 Aug 2011 15:24:21 +0000 (17:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 30 Aug 2011 11:01:59 +0000 (13:01 +0200)
commit13df02ad044cca3c0414f5e34c57fe04b69b414c
tree890a7b5691c23feb1be43e4a87fd6e706762663b
parent6f3e93e3cb90bb8551132880e0d158eaeb633c07
QHttpNetworkConnection : Fix the case when we only have one channel

For the Happy eyeballs implementation we use two channels for the case
where a host lookup gives us both Ipv4 and Ipv6 addresses.
In the case where the Connection is setup to only use one channel
we can not use this solution, so in this case we should use the old
way of connecting with one channel.

Task-number: QTBUG-20981
Change-Id: I6590fb4c67d6a8261cd0e4da8f99cd3603bbb524
Reviewed-on: http://codereview.qt.nokia.com/3524
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
src/network/access/qhttpnetworkconnection.cpp
src/network/access/qhttpnetworkconnectionchannel.cpp