[SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile
Lorn Potter
lorn.potter at jolla.com
Thu Nov 12 04:11:48 UTC 2015
> On 12 Nov 2015, at 9:50 am, Aaron McCarthy <aaron.mccarthy at jolla.com> wrote:
>
> Hi,
>
> On Wed, 11 Nov 2015 16:20:11 Alexander Ladygin wrote:
>> I probably didn't make myself clear =(
>> 1) wifi is turned on
>> 2) app is launched, i can download files with QNAM
>> 3) app is still launched, i turn off the wifi (mobile network activated)
>> 4) i can no longer download any files. No network errors, but QNAM's reply
>> returns empty files
>
> Does the reply emit the finished() signal? I ask because I would expect the
> reply to either finish with an error or hang attempting to use the previous
> connection.
>
> You could try using tcpdump or strace to check what QNAM is actually doing at
> the socket level. It might give more of a clue as to what is going wrong.
>
It’s not at that level.
I’ve been working on this today. I haven’t created a bug about it yet.
There are a few things going on in QNAM with regards to it’s NetworkSession and timing of when configurations become active and non active.
-
Lorn
More information about the Devel
mailing list