[SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

Andrey Kozhevnikov coderusinbox at gmail.com
Tue Nov 10 10:38:09 UTC 2015


QNetworkConfigurationManager have signal: onlineStateChanged(bool)

------ Исходное сообщение ------
От: "Alexander Ladygin" <fake.ae at gmail.com>
Кому: aaron.mccarthy at jolla.com; "Sailfish OS Developers" 
<devel at lists.sailfishos.org>
Отправлено: 10.11.2015 14:06:12
Тема: Re: [SailfishDevel] QNetworkAccessManager is losing connection 
upon switching between wifi and mobile

>in addition: even if i create new object instance for 
>QNetworkAccessManager, it still won't connect to internet, as if it 
>still uses WiFi "globally" even though wifi is off
>
>On Tue, Nov 10, 2015 at 11:07 AM, Alexander Ladygin <fake.ae at gmail.com> 
>wrote:
>>but how exactly can i make disconnect? All the network requests i send 
>>with QNetworkAccessManager after switching to mobile are returned with 
>>errors =(
>>
>>On Tue, Nov 10, 2015 at 4:05 AM, Aaron McCarthy 
>><aaron.mccarthy at jolla.com> wrote:
>>>On Tue, 10 Nov 2015 03:37:10 Alexander Ladygin wrote:
>>> > I've got an issue: QNetworkAccessManager is losing connection upon
>>> > switching between wifi and mobile:( What exactly should i do/update 
>>>to make
>>> > it work properly? Maybe need to change network configuration? Why 
>>>it is not
>>> > handled by platform?
>>>
>>>There is some support for migrating connections to the new interface. 
>>>QNAM
>>>supports resuming GET operations under the following conditions:
>>>
>>>1. Only GET requests are resumed.
>>>2. No outgoing data.
>>>3. Server supports HTTP Accept-Ranges.
>>>4. Does not work with QNAM's zero-copy feature.
>>>5. Must be using bearer management.
>>>
>>>For other operations and GET requests that do not meet the above, you 
>>>will
>>>need to handle the network disconnection and resend the request.
>>>
>>>Cheers,
>>>
>>>--
>>>Aaron McCarthy
>>>_______________________________________________
>>>SailfishOS.org Devel mailing list
>>>To unsubscribe, please send a mail to 
>>>devel-unsubscribe at lists.sailfishos.org
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20151110/3604a721/attachment.html>


More information about the Devel mailing list