Alert the user when there is no internet (first cut) #233

Manually merged
dan merged 1 commits from network_check into master 2019-11-12 20:15:52 +00:00
Owner

There are still some open questions here which I'd like to revisit later like : should we restart the listen server of all peers, but this gives us the infrastructure to build such features

There are still some open questions here which I'd like to revisit later like : should we restart the listen server of all peers, but this gives us the infrastructure to build such features
dan was assigned by sarah 2019-11-06 19:12:49 +00:00
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/417

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/417
dan requested changes 2019-11-06 20:15:49 +00:00
@ -45,3 +61,3 @@
}
gcd.TorStatus(statuscode, message)
if !networkOffline {

I'm not sure network status updates from a cwtch plugin should supercede updates from the ACN, epsecially when those will be about it turning back on, and therefor forever prevented from appearing

networkOffline happens, is set to true, ACN tries to restart and sends updates, they are discarded in the UI until its alrady online and waits till the cwtch plugin can connect and sets networkOffline to false and then updates the UI straight from 0 to on

I'm not sure network status updates from a cwtch plugin should supercede updates from the ACN, epsecially when those will be about it turning back on, and therefor forever prevented from appearing networkOffline happens, is set to true, ACN tries to restart and sends updates, they are discarded in the UI until its alrady online and waits till the cwtch plugin can connect and sets networkOffline to false and then updates the UI straight from 0 to on

I'm not sure network status updates from a cwtch plugin should supercede updates from the ACN, epsecially when those will be about it turning back on, and therefor forever prevented from appearing

networkOffline happens, is set to true, ACN tries to restart and sends updates, they are discarded in the UI until its alrady online and waits till the cwtch plugin can connect and sets networkOffline to false and then updates the UI straight from 0 to on

I'm not sure network status updates from a cwtch plugin should supercede updates from the ACN, epsecially when those will be about it turning back on, and therefor forever prevented from appearing networkOffline happens, is set to true, ACN tries to restart and sends updates, they are discarded in the UI until its alrady online and waits till the cwtch plugin can connect and sets networkOffline to false and then updates the UI straight from 0 to on
@ -32,0 +36,4 @@
case event.NetworkStatus:
the.AppBus.Publish(*e)
if e.Data["Status"] == "Success" && networkOffline {

I don't think we need to handle anything here, we can always add it in when we determine we need to

I don't think we need to handle anything here, we can always add it in when we determine we need to
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/421

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/421
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/423

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/423
Author
Owner

Most of the work here happened in Cwtch and go-ricochet PRs - Tor better handles restarts, we minimized potential race conditions (there are still a few around eventbus we need to deal with in Cwtch, and current connections don't detect timeouts - this is something we should handle in Tapir)

But for now, this PR restarts Tor when the interet goes down and the peer now recovers

Most of the work here happened in Cwtch and go-ricochet PRs - Tor better handles restarts, we minimized potential race conditions (there are still a few around eventbus we need to deal with in Cwtch, and current connections don't detect timeouts - this is something we should handle in Tapir) But for now, this PR restarts Tor when the interet goes down and the peer now recovers
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/427

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/427
dan closed this pull request 2019-11-12 20:15:52 +00:00
dan closed this pull request 2019-11-12 20:15:52 +00:00
dan deleted branch network_check 2019-11-12 20:16:01 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.