← Back to team overview

touch-packages team mailing list archive

[Bug 1470700] Re: QNetworkAccessManager hangs when in flight mode

 

I just tested this with the packages from silo 21.

Unfortunately, this is still not working:

Successfully activated service 'com.canonical.Thumbnailer'
thumbnailer-service: [04:00:22.245] Ready
thumbnailer-service: [04:00:22.281] accessible: 1
thumbnailer-service: [04:00:32.332] "album: Mamady Keïta/Afö (512,512): 10.073462 [d: 9.985228] sec (NETWORK DOWN)"

Note the ten-second delay is still there. Moreover, as the trace shows,
networkAccessible() returns 1, even though the device is in flight mode.

It appears that the 1 return value happens for the first call we make.
Thereafter, it looks like networkAccessible() correctly returns 0.

At any rate, this bug isn't fixed yet, by the looks of things.
networkAcessible() is still lying the first time we call it, and the
hang until we time out is still there.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtbase-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1470700

Title:
  QNetworkAccessManager hangs when in flight mode

Status in qtbase-opensource-src package in Ubuntu:
  Confirmed
Status in thumbnailer package in Ubuntu:
  New

Bug description:
  When my phone is in flight mode, HTTP requests made using
  QNetworkAccessManager seem to hang rather than erroring out
  immediately.

  From my tests, it looks like the HTTP request is blocked until the
  flight mode is disabled and a network connection is reestablished.
  This is contrary to the documentation, which states:

  """If the network is not accessible the network access manager will
  not process any new network requests, all such requests will fail with
  an error. Requests with URLs with the file:// scheme will still be
  processed."""

  http://doc.qt.io/qt-5/qnetworkaccessmanager.html#networkAccessible-
  prop

  By running strace on my test program, it doesn't even look like it
  attempts to open a TCP connection when blocked in flight mode.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1470700/+subscriptions


References