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

refactor: add documentation to the layered architecture #56

Merged
merged 110 commits into from
Jan 24, 2024

Conversation

ainghazal
Copy link
Collaborator

@ainghazal ainghazal commented Jan 22, 2024

This is a follow-up to the ongoing architectural refactor after the last merged layer (#54).

Here we add documentation to the layered approach.

Additionally, we change the OnWorkerDone() call so that the worker's name is passed in the call and logging responsibility for the done event belongs to the workers.Manager.

Reference issue: #47

ainghazal and others added 30 commits May 8, 2023 15:46
I've tried to achieve te minimal incremental change that adds resilience
in the face of network noise.

To achieve that, the simple thing to do was to make session an object
owned by an implementation of reliableTransport. I've reused the
reliableUDP implementation in govpn, and I like the simplicity of that
implementation a lot. A lot of our current logic (ackqueue/retries)
needed to move from the tlsTransport minivpn implementation into
reliableTransport.

Although the DoS documented in the MIV-01 report is not done, we add the
e2e testing script to facilitate further development.

- Related: ooni#32

more tests
In particular, make sure it's ~easy to connect them all.
Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor changes 🐳

.gitignore Outdated Show resolved Hide resolved
internal/networkio/service.go Outdated Show resolved Hide resolved
internal/tlssession/tlssession.go Show resolved Hide resolved
ainghazal and others added 2 commits January 24, 2024 14:56
Co-authored-by: Simone Basso <bassosimone@gmail.com>
@ainghazal ainghazal merged commit c4c9b5a into ooni:main Jan 24, 2024
@ainghazal ainghazal deleted the architecture-review branch January 24, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants