Attached is the test program. I compiled it within the click chroot using the following command:
arm-linux-gnueabihf-g++ -ggdb -std=c++11 -fPIC -o net-test.arm net- test.cpp `arm-linux-gnueabihf-pkg-config --cflags --libs Qt5Network` When run with a URL as an argument, it will attempt to retrieve the resource every 5 seconds. When in flight mode, I see the process blocked in poll(): poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}], 2, -1) Where the two file descriptors are: eventfd2(0, O_NONBLOCK|O_CLOEXEC) = 3 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0) = 7 connect(7, {sa_family=AF_LOCAL, sun_path="/var/run/dbus/system_bus_socket"}, 33) = 0 (i.e. the second is a D-Bus connection to the system bus). ** Attachment added: "net-test.cpp" https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1470700/+attachment/4423164/+files/net-test.cpp -- 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: 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 -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp