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

loading water dialer async #1429

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
59018b5
feat: adding wasm downloader
WendelHime Oct 8, 2024
384faf9
fix: update tests package name
WendelHime Oct 8, 2024
0e192d6
fix: generating wasm downloader mock
WendelHime Oct 8, 2024
7ea9e14
Merge branch 'main' of github.com:getlantern/flashlight into feat/add…
WendelHime Oct 8, 2024
1dd0eba
feat: adding magnet downloader
WendelHime Oct 8, 2024
f1f31f2
feat: adding case for using magnet downloader
WendelHime Oct 8, 2024
fe2800e
fix: replacing magnetic references by magnet and also removing magnet…
WendelHime Oct 9, 2024
4cabe60
fix: downgrade torrent version to 1.53.3 to avoid errors happening at…
WendelHime Oct 9, 2024
dfa1961
fix: updating the way we're comparing hashes
WendelHime Oct 9, 2024
642fa35
Merge branch 'main' of github.com:getlantern/flashlight into feat/add…
WendelHime Oct 9, 2024
ace0180
chore: go mod tidy
WendelHime Oct 9, 2024
25912c8
feat: using DirectThenFronted proxy for fetching WASM and also update…
WendelHime Oct 9, 2024
a413736
feat: fix test and print error message
WendelHime Oct 9, 2024
582189f
feat: give life to the dial monster
WendelHime Oct 10, 2024
57da083
feat: release the beast
WendelHime Oct 10, 2024
e3d4823
fix: rename mocks.go to mocks_test.go
WendelHime Oct 10, 2024
060f89b
fix: pass empty rootCA at this moment
WendelHime Oct 10, 2024
2af726d
fix: removing hashsum parameter
WendelHime Oct 10, 2024
183e2f7
fix: replacing http client parameter by package var so I can mock it …
WendelHime Oct 10, 2024
9638b69
fix: leaving mkdirtemp first parameter empty and set lantern-water-mo…
WendelHime Oct 10, 2024
c354a16
fix: update torrent to latest version
WendelHime Oct 11, 2024
b0b2936
fix: generating more mocks for torrent so we can unit test it without…
WendelHime Oct 15, 2024
c4f5beb
chore: removing test that was fetching random torrent
WendelHime Oct 15, 2024
5a4a9ce
chore: keeping torrent at v1.53.3
WendelHime Oct 15, 2024
caead9c
fix: removing WithHTTPDownloader
WendelHime Oct 15, 2024
189a057
fix: adding garmr-ulfr suggestions from http-proxy PR
WendelHime Oct 16, 2024
96ae35e
feat: adding minimal version control for WASM files
WendelHime Oct 17, 2024
7961d54
feat: using filename/transport as index for mapped wasm files
WendelHime Oct 17, 2024
9689ecd
feat: integrate version control with water wasm and replace direct do…
WendelHime Oct 17, 2024
8852284
chore: sending writer directly instead of creating a temp buffer
WendelHime Oct 17, 2024
6fe7877
chore: sending config dir as parameter to water impl
WendelHime Oct 17, 2024
dff3a97
chore: small refactor for organizing download step
WendelHime Oct 18, 2024
17f88fe
feat: add support for WASM history
WendelHime Oct 18, 2024
ca63cf7
feat: update history after loading WASM correctly
WendelHime Oct 18, 2024
7535691
feat: creating water dialer async
WendelHime Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 174 additions & 0 deletions chained/mocks_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chained/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func createImpl(configDir, name, addr, transport string, s *config.ProxyConfig,
case "algeneva":
impl, err = newAlgenevaImpl(addr, s, reportDialCore)
case "water":
impl, err = newWaterImpl(addr, s, reportDialCore)
impl, err = newWaterImpl(configDir, addr, s, reportDialCore)
default:
err = errors.New("Unknown transport: %v", transport).With("addr", addr).With("plugabble-transport", transport)
}
Expand Down
136 changes: 136 additions & 0 deletions chained/torrent_reader_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading