• flypig's avatar
    [qtbase] Check alternative connections when connecting. Contributes to JB#47349 · 22410ac3
    flypig authored
    QNetworkAccessManager keeps track of a single connected session (e.g.
    Wifi, mobile data) at a time. If the currently tracked session
    disconnects, it checks whether any other network configuration is
    online, and if so, it switches to make this the current session.
    
    However, if the currently tracked session changes to the Connecting
    state, QNetworkAccessManager will claim the network is inaccessible,
    even if other configurations are online, and will refuse to switch to a
    different session until the current session state changes from
    Connecting to either Connected or Disconnected.
    
    Unfortunately, occassionally Wifi connections will move into the
    Connecting state and potentially not switch to the Connected or
    Disconnected state for some time, which can block connectivity for apps
    using QNetworkAccessManager to maintain connections (it's not clear
    whether this is because the connection actually gets stuck, or because
    the state change signals get lost somewhere; the result is the
    same).
    
    This change makes QNetworkAccessManager switch connection in case the
    current session moves to the Connecting state while another online
    configuration is available to use instead.
    22410ac3
Name
Last commit
Last update
bin Loading commit data...
config.tests Loading commit data...
dist Loading commit data...
doc Loading commit data...
examples Loading commit data...
lib Loading commit data...
mkspecs Loading commit data...
qmake Loading commit data...
rpm Loading commit data...
src Loading commit data...
tests Loading commit data...
tools Loading commit data...
util Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.qmake.conf Loading commit data...
.tag Loading commit data...
INSTALL Loading commit data...
LGPL_EXCEPTION.txt Loading commit data...
LICENSE.FDL Loading commit data...
LICENSE.GPLv3 Loading commit data...
LICENSE.LGPLv21 Loading commit data...
LICENSE.LGPLv3 Loading commit data...
LICENSE.PREVIEW.COMMERCIAL Loading commit data...
configure Loading commit data...
configure.bat Loading commit data...
header.BSD Loading commit data...
header.BSD-NEW Loading commit data...
header.COMM Loading commit data...
header.FDL Loading commit data...
header.LGPL-ONLY Loading commit data...
header.LGPL21 Loading commit data...
header.LGPL3 Loading commit data...
header.LGPL3-COMM Loading commit data...
qtbase.pro Loading commit data...
sync.profile Loading commit data...