From c5b742a5f69c0ef85bc0d56f1178692788eb5305 Mon Sep 17 00:00:00 2001 From: Martin Petersson Date: Wed, 6 Jun 2012 13:47:54 +0200 Subject: QtNetwork: disconnect other channels when network layer detected With Happy Eyeballs we will connect one IPv4 and one IPv6 channel and pick the network layer depending on which connects first. When the first channel is connected we can close the other one. Before this we let the other connection finish connecting and then closed it. This will close the other one as soon as the first one is connected. Change-Id: Ib2ab3f949704fd39dc0584bd31b9bcaf75ce35f7 Reviewed-by: Shane Kearns --- src/network/access/qhttpnetworkconnection_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/network/access/qhttpnetworkconnection_p.h') diff --git a/src/network/access/qhttpnetworkconnection_p.h b/src/network/access/qhttpnetworkconnection_p.h index 1b9c703262..74bf25ae32 100644 --- a/src/network/access/qhttpnetworkconnection_p.h +++ b/src/network/access/qhttpnetworkconnection_p.h @@ -193,6 +193,7 @@ public: void startHostInfoLookup(); void startNetworkLayerStateLookup(); + void networkLayerDetected(QAbstractSocket::NetworkLayerProtocol protocol); // private slots void _q_startNextRequest(); // send the next request from the queue -- cgit v1.2.3