Open Mikaela opened 9 years ago
Original issue description from IRC:
2015-05-18.log:[23:18:00]
Sailfish version also has some kind of trouble with detecting when I move to WLAN or when WLAN loses conenction, in both cases it thinks it's connected forever and I must restart or move to mobile broadband so it reconnects
You don't need to restart. It is enough to long-press the network in the left pulley and disconnect / reconnect.
However it really should reconnect automatically.
Is there any ETA when this might get fixed and got to Jolla Store?
This is just still the only reason why I use mobile network everyhwhere instead of WLAN while there are a lot of WLANs I could connect to often with better connectivity.
I can try to fix this. Can anybody from the team supervise me?
Is that still the case? I just tried this by switching from mobile data to wlan and everything is fine.
It's supposed to work, but many times it's unreliable. As we discussed on IRC, sometimes it just gives up and doesn't reconnect. I never quite figured out why, but it happened rarely enough that it never bothered me that much.
I think I've found the reason for the issue:
export IRC_DEBUG=4
harbour-communi
3 Now disconnect and connect your internet connection multiple
times, it does not matter if it switching from Wifi to Mobile Data just
make it reconnectQAbstractSocket::NetworkError
occurs.[D] unknown:0 - [2021-10-19T19:40:20 OFTC@Bnc] -> "PRIVMSG OFTC@Bnc :jsjwwj"
[D] unknown:0 - [2021-10-19T19:40:27 OFTC@Bnc] -> "PRIVMSG OFTC@Bnc :jsjsjse"
[D] unknown:0 - [2021-10-19T19:41:47 Bitlbee@Bnc] -> "PRIVMSG &bitlbee :jsjsjss"
[D] unknown:0 - [2021-10-19T19:43:55 OFTC@Bnc] !! QAbstractSocket::NetworkError
[D] unknown:0 - [2021-10-19T19:43:55 OFTC@Bnc] ?? Error bnc..de 6697
[D] unknown:0 - [2021-10-19T19:43:55 OFTC@Bnc] ?? Waiting bnc..de 6697
[D] unknown:0 - [2021-10-19T19:44:10 OFTC@Bnc] ?? Connecting bnc..de 6697
Nice work, so the issue is that it takes too long before a NetworkError is handled?
I think so far that the NetworkConfiguration state isn't updated properly inside Qt.
(If anyone still cares about this, a fix/workaround can be found here: https://github.com/communi/communi-sailfish/compare/master...mornfall:communi-sailfish:master)
mornfall 1 month ago (If anyone still cares about this, a fix/workaround can be found here: https://github.com/communi/communi-sailfish/compare/master...mornfall:communi-sailfish:master)
Well I do care about it but it would be faster to get to it for me if you would follow the proceedings. It does you time and me.
I will try to add some instructions on how and why. But for now please just create a branch and than create a PR with that branch.
I've have been testing the fix/new feature for this bug. It does look very good so far.
Thanks @mornfall.
I am not sure how to explain this. When I change from mobile data to WLAN, Communi Sailfish thinks that the connection stays open, but doesn't send or receive any messages. Same when changing from WLAN to mobile data or another WLAN.
I think that currently the only way to make Communi Sailfish connect over network change is to (when mobin from mobile data --> wlan) disable both mobile data and WLAN and then re-enable WLAN. Sometimes the WLAN also dies with the same symptoms, no messages sent or received, I mostly see this in buses.