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

Fix relayed connections, add DCUtR and reduce CLI args #502

Merged
merged 64 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from 60 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
2d1e6fa
Remove all swarm event handling
sandreae Jul 15, 2023
af206a5
Separate relay and client networking behaviours
sandreae Jul 16, 2023
144ba90
Initialize relay, listen on tcp and udp/quic
sandreae Jul 16, 2023
53a50a3
Refactor client construction
sandreae Jul 16, 2023
1d8157a
Client rendezvous registration and dial discovered peers
sandreae Jul 16, 2023
2f15e2b
Wait on all registrations then dial peers on relay address
sandreae Jul 16, 2023
d63de89
Add ping behaviour
sandreae Jul 16, 2023
3fec6f8
Move break in relay Identity wait loop
sandreae Jul 16, 2023
ccb559e
Generic Event for all behaviours
sandreae Jul 16, 2023
66bf6e9
Merge behaviours back into one, and add peers::Behaviour
sandreae Jul 17, 2023
0ee726a
Refactor swarm construction
sandreae Jul 17, 2023
54e9591
Handle discovery and peer swarm events
sandreae Jul 17, 2023
ecc8794
cargo fmt
sandreae Jul 17, 2023
dda3463
Retry establishing circuit relay reservation when connection prematur…
sandreae Jul 24, 2023
e595aeb
Refactor event handling methods in service
sandreae Jul 24, 2023
7783289
Make peers behavior toggle
sandreae Jul 24, 2023
52571d5
Don't listen on tcp port as client
sandreae Aug 16, 2023
39607cb
Pick available quic port for "client" nodes when not set
sandreae Aug 16, 2023
134a297
Add dial opts conditions wnen dialing rendezvous discovered peers
sandreae Aug 16, 2023
abd5df3
Add mdns discovery to Behaviour
sandreae Aug 16, 2023
07a7376
Bump libp2p and libp2p-quic
sandreae Aug 16, 2023
58591b2
Consistent event handler method naming
sandreae Aug 16, 2023
f53de41
Correct method name
sandreae Aug 16, 2023
9385cbc
Add dcutr behaviour
sandreae Aug 16, 2023
3376c89
Client and Relay nodes have peers behaviour
sandreae Aug 16, 2023
1630e95
Remove separate event loop in relay constructor
sandreae Aug 16, 2023
b815a47
Dial rendezvous server again to initiate replication
sandreae Aug 16, 2023
95cc3ab
Re-integrate dialer behaviour
sandreae Aug 16, 2023
0df5413
Rework dialer dialing logic
sandreae Aug 17, 2023
7997c89
Stop and restart peers behaviour during startup
sandreae Aug 17, 2023
6959e42
Relay listens on any available tcp port
sandreae Aug 17, 2023
35a41f1
Relay circuit and reservations expire after one hour
sandreae Aug 17, 2023
baeb649
Redo network configuration and cli options
sandreae Aug 17, 2023
c71bb29
Remove dialer behaviour
sandreae Aug 17, 2023
fcfde2a
Clippy
sandreae Aug 17, 2023
2b7e9ba
Peers behaviour is always activated
sandreae Aug 17, 2023
ae021cf
Refactor event loop event handling
sandreae Aug 17, 2023
74d1b97
Peers behaviour is no longer Toggle
sandreae Aug 17, 2023
650b203
Loads of comments and tidy-up in service
sandreae Aug 17, 2023
a03fa6d
Pick any quic port when not in relay mode
sandreae Aug 17, 2023
88e0f67
Update README
sandreae Aug 17, 2023
4f51fb9
Clippy
sandreae Aug 17, 2023
a8357f5
Transport tidy up
sandreae Aug 17, 2023
db9cd4d
Remove timeout from tcp transport
sandreae Aug 17, 2023
8f298a8
Refactor transport construction
sandreae Aug 17, 2023
71b466f
Bring back lost doc string
sandreae Aug 17, 2023
b897250
Correct default quic port
sandreae Aug 17, 2023
878dfa2
Add some more info logs
sandreae Aug 18, 2023
6a0fe24
Update CHANGELOG.md
adzialocha Aug 18, 2023
4056982
Add more doc strings, factor out constants
adzialocha Aug 18, 2023
d8387ee
Minor doc-string fix
adzialocha Aug 18, 2023
c94e30a
Fix usage format in README.md
adzialocha Aug 18, 2023
726535d
Change addr to address for cli arg consistency
adzialocha Aug 18, 2023
5777c7e
Rename methods to enable and disable peers behaviour
adzialocha Aug 18, 2023
5867905
Always use 2022 as default for QUIC port
adzialocha Aug 18, 2023
c93d156
Fix unset quic port
adzialocha Aug 18, 2023
369d8eb
Choose random port when HTTP port is already taken
adzialocha Aug 18, 2023
d548be8
Pick a random QUIC port if it was already taken
adzialocha Aug 18, 2023
4d137d8
Adjust doc string a bit
adzialocha Aug 18, 2023
9903149
Add a TODO for the second dial
adzialocha Aug 18, 2023
5349044
Make clippy happy
adzialocha Aug 18, 2023
0487858
Mention issue in TODO
adzialocha Aug 18, 2023
ed49b32
Update CHANGELOG
sandreae Aug 18, 2023
c88338d
Use dial opts with conditions when dialing peers discovered over mDNS
sandreae Aug 22, 2023
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
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Introduce peer sampling to the replication service [#463](https://github.com/p2panda/aquadoggo/pull/463)
- Only replicate and materialize configured "supported schema" [#569](https://github.com/p2panda/aquadoggo/pull/469)
- Parse supported schema ids from `config.toml` [#473](https://github.com/p2panda/aquadoggo/pull/473)
- Fix relayed connections, add DCUtR Holepunching and reduce CLI args [#502](https://github.com/p2panda/aquadoggo/pull/502)

### Changed

Expand All @@ -50,9 +51,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Use `libp2p` `0.52.0` [#425](https://github.com/p2panda/aquadoggo/pull/425)
- Check for duplicate entries arriving to `Ingest` before consuming [#439](https://github.com/p2panda/aquadoggo/pull/439)
- Replicate entries in their topologically sorted document order [#442](https://github.com/p2panda/aquadoggo/pull/442)
- Remove `quick_commit` from materialization service [#450](https://github.com/p2panda/aquadoggo/pull/450)
- Reduce `warn` logging in network and replication services [#467](https://github.com/p2panda/aquadoggo/pull/467)
- `mdns` and `autonat` disabled by default [#475](https://github.com/p2panda/aquadoggo/pull/475)
- Remove "quick commit" from materialization service [#450](https://github.com/p2panda/aquadoggo/pull/450)
- Reduce WARN level logging in network and replication services [#467](https://github.com/p2panda/aquadoggo/pull/467)
- mDNS and AutoNAT disabled by default [#475](https://github.com/p2panda/aquadoggo/pull/475)
- By default, nodes support _any_ schema [#487](https://github.com/p2panda/aquadoggo/pull/487)

### Fixed
Expand Down
Loading
Loading