← Back to team overview

touch-packages team mailing list archive

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

 

There should not be any difference before/after, now the environment
variable is just set up automatically.

So the fixes do fix in principle the accessible() return value and
definitely fix the original bug report of QNAM hangs, but with some
downsides or at least it still not being perfect.

The same behaviour can be seen with Qt 5.5.1 so this will be the de
facto future way the Qt network is going to work. If you want to
continue comparisons, on xenial image (once they work) you can test
https://wiki.ubuntu.com/Touch/QtTesting to get Qt 5.5.1 into use.

Notably unresolved bug #1508945 is filed for one problem these patches
or the Qt 5.5.1 will bring.

Thanks for trying out and reporting... all in all it's useful to have
the PPAs but this isn't something that could be immediately landed to
stable phone users at least because of that 1508945.

-- 
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:
  Triaged

Bug description:
  Testing the fix:

  - Update rc-proposed (vivid) to citrain device-upgrade 32 0000
  - Reboot

  ---

  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