Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite of GoVpnAdapter - v055 #321

Closed
hussainmohd-a opened this issue Jun 24, 2021 · 4 comments
Closed

Rewrite of GoVpnAdapter - v055 #321

hussainmohd-a opened this issue Jun 24, 2021 · 4 comments

Comments

@hussainmohd-a
Copy link
Collaborator

GoVpnAdpater requires a re-write which will be part of v055.
eg., As of now the app fallback on an unmaintained url.

@hussainmohd-a
Copy link
Collaborator Author

"STOP + Failing" or should the app flip to "START + Not protected"?? Line: 521

@ignoramous
Copy link
Collaborator

ignoramous commented Jul 22, 2021

Refs:

ignoramous on 4 Jun
why is this if (in RefreshAsyncTask) required? The invariant that the dns-type is dns-crypt should hold when this block of code is executed. Checking persistentState here, which could have changed in the mean while, is bound to be fraught with race condition.

https://github.com/celzero/rethink-app/pull/282/files/2e87fcfe40433e846d8eb25a309c9d694a4f7911..ff1eb73d3d248914bc282618637af8076c819197#r645636367


ignoramous on 4 Jun
I don't get why the persistentState needs to be checked over and over. This task, RefreshOperation should execute under the guise that the current dns-mode is dns-crypt and nothing else.
If race needs to be handled, then checking persistentState in every block of code isn't the way to do it.

hussainmohd-a on 17 Jun
The whole AsyncTast(RefreshOperatio) will be removed witht the upcoming version v055. Will work on the dns mode change with that.

https://github.com/celzero/rethink-app/pull/282/files/2e87fcfe40433e846d8eb25a309c9d694a4f7911..ff1eb73d3d248914bc282618637af8076c819197#r645638373

@ignoramous
Copy link
Collaborator

"STOP + Failing" or should the app flip to "START + Not protected"?? Line: 521

Implemented in #282 in BraveVpnService#handleAdapterChange, but it shows failing for now when a tunnel couldn't be established. Re: showing other states (possibly, offline): #294

@ignoramous
Copy link
Collaborator

Most of the rewrite is well and truly done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants