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

Aaron McCarthy aaron.mccarthy at jolla.com
Tue Nov 10 01:05:55 UTC 2015


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


More information about the Devel mailing list