<div dir="ltr"><div>Okay;<br></div>there has been a rewrite for bearer plugin, has that helped in any way?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 2:46 AM, Lorn Potter <span dir="ltr"><<a href="mailto:lorn.potter@gmail.com" target="_blank">lorn.potter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 01/05/17 19:16, Slava Monich wrote:<br>
> Basically, QNetworkAccessManager is sometimes stuck in NotAccessible<br>
> state after switching from mobile data to wifi.<br>
<br>
</span><span class="">> My theory was that<br>
> configurationChanged, onlineStateChanged and networkSessionStateChanged<br>
> (queued) signals from the past were getting mixed with the current state<br>
> (which was checked directly) in such a way that<br>
> QNetworkAccessManagerPrivate online state remained false even though<br>
> connman service was getting successfully connected.<br>
<br>
</span>This is all from memory, but...<br>
<br>
The cell network 'disconnected' can come in after wifi has been<br>
established, but before all wifi settings are available so QNAM<br>
configuration cannot be 'active'. connman manager can send a 'services<br>
updated' signal before the service object has actually been updated<br>
internally. so the bearer plugin goes to check it and the properties of<br>
that service are not yet updated.<br>
<br>
and then, wpa/connman can also 'remove' an AP when it really is around,<br>
even in the middle of connecting.<br>
<br>
As well, connman's 'ready' and 'online' are both equivalent to<br>
QNAMConfiguration::Active. 'ready' does not guarantee that internet can<br>
be reached, and 'online' check can easily fail.<br>
<br>
<br>
I am sure there are other intricacies I am forgetting, but the<br>
interactions are quite complicated, so it's not an easy bug to fix.<br>
Even if you remove the whole 'manually setting NetworkAccessible' to<br>
notAccessible.<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a></div></div></blockquote></div><br></div>