-
Notifications
You must be signed in to change notification settings - Fork 0
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
Autonat v2 transport changes #3
Autonat v2 transport changes #3
Commits on Oct 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6cc5d7c - Browse repository at this point
Copy the full SHA 6cc5d7cView commit details
Commits on Nov 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6d44a1e - Browse repository at this point
Copy the full SHA 6d44a1eView commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 81cd442 - Browse repository at this point
Copy the full SHA 81cd442View commit details
Commits on Nov 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c0fd889 - Browse repository at this point
Copy the full SHA c0fd889View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ac520d - Browse repository at this point
Copy the full SHA 4ac520dView commit details
Commits on Nov 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fadf904 - Browse repository at this point
Copy the full SHA fadf904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60b4ccc - Browse repository at this point
Copy the full SHA 60b4cccView commit details
Commits on Nov 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 71487fc - Browse repository at this point
Copy the full SHA 71487fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63b31e9 - Browse repository at this point
Copy the full SHA 63b31e9View commit details
Commits on Dec 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 546d2b2 - Browse repository at this point
Copy the full SHA 546d2b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c16235f - Browse repository at this point
Copy the full SHA c16235fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bc107e - Browse repository at this point
Copy the full SHA 3bc107eView commit details
Commits on Dec 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 50fb5e4 - Browse repository at this point
Copy the full SHA 50fb5e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d34782e - Browse repository at this point
Copy the full SHA d34782eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d1bd57d - Browse repository at this point
Copy the full SHA d1bd57dView commit details
Commits on Dec 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fee9de1 - Browse repository at this point
Copy the full SHA fee9de1View commit details -
Configuration menu - View commit details
-
Copy full SHA for faa694a - Browse repository at this point
Copy the full SHA faa694aView commit details
Commits on Dec 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b01bae5 - Browse repository at this point
Copy the full SHA b01bae5View commit details
Commits on Dec 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6282cae - Browse repository at this point
Copy the full SHA 6282caeView commit details -
Configuration menu - View commit details
-
Copy full SHA for dab99d2 - Browse repository at this point
Copy the full SHA dab99d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for da2a790 - Browse repository at this point
Copy the full SHA da2a790View commit details
Commits on Dec 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for be35e80 - Browse repository at this point
Copy the full SHA be35e80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 101a325 - Browse repository at this point
Copy the full SHA 101a325View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf2662a - Browse repository at this point
Copy the full SHA bf2662aView commit details -
Configuration menu - View commit details
-
Copy full SHA for efdbe35 - Browse repository at this point
Copy the full SHA efdbe35View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7350f9 - Browse repository at this point
Copy the full SHA c7350f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3079aa9 - Browse repository at this point
Copy the full SHA 3079aa9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 596bb06 - Browse repository at this point
Copy the full SHA 596bb06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37cd309 - Browse repository at this point
Copy the full SHA 37cd309View commit details
Commits on Dec 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9eea564 - Browse repository at this point
Copy the full SHA 9eea564View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a85209 - Browse repository at this point
Copy the full SHA 9a85209View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4399bab - Browse repository at this point
Copy the full SHA 4399babView commit details
Commits on Dec 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 663055e - Browse repository at this point
Copy the full SHA 663055eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba232cb - Browse repository at this point
Copy the full SHA ba232cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22b96b3 - Browse repository at this point
Copy the full SHA 22b96b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a19d7c8 - Browse repository at this point
Copy the full SHA a19d7c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46b8e84 - Browse repository at this point
Copy the full SHA 46b8e84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 037aa99 - Browse repository at this point
Copy the full SHA 037aa99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 230ad08 - Browse repository at this point
Copy the full SHA 230ad08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cbf413 - Browse repository at this point
Copy the full SHA 7cbf413View commit details -
Rewrite pending nonce handling
Through the use of let-else, we can early-exit on the unhappy-path. We also update the log message to remove the "cause" as there can be a multitude of reasons, why we received a nonce that we didn't expect, e.g. it could also be a bug in the client or the server implementation so we don't want to jump to conclusions here.
Configuration menu - View commit details
-
Copy full SHA for 16b4d7c - Browse repository at this point
Copy the full SHA 16b4d7cView commit details -
A server might not support autonat on every connection
Fix the event handling to only update the flag for the connection that the event originated from.
Configuration menu - View commit details
-
Copy full SHA for fdc0c2d - Browse repository at this point
Copy the full SHA fdc0c2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a78c265 - Browse repository at this point
Copy the full SHA a78c265View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f6c27a - Browse repository at this point
Copy the full SHA 8f6c27aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 170270a - Browse repository at this point
Copy the full SHA 170270aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 589cf6c - Browse repository at this point
Copy the full SHA 589cf6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for feea82f - Browse repository at this point
Copy the full SHA feea82fView commit details -
Remove
server
field fromInternalStatusUpdate
Connections are always scoped to a particular peer and the PeerId is reported with every event sent from the handler to the behaviour. We don't need to include it in the event.
Configuration menu - View commit details
-
Copy full SHA for 8b0a544 - Browse repository at this point
Copy the full SHA 8b0a544View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86849e5 - Browse repository at this point
Copy the full SHA 86849e5View commit details -
Remove set that we never write to
This is now handled in the `AddressInfo` struct.
Configuration menu - View commit details
-
Copy full SHA for 372d88d - Browse repository at this point
Copy the full SHA 372d88dView commit details -
We filter straight after this for the same conditions.
Configuration menu - View commit details
-
Copy full SHA for a2fcadd - Browse repository at this point
Copy the full SHA a2fcaddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90d7d07 - Browse repository at this point
Copy the full SHA 90d7d07View commit details -
Rewrite generation of dial requests
An AutoNAT server will always only dial a single address. Thus, we are more likely to get a quicker results for all our candidates if we send each candidate to a different server.
Configuration menu - View commit details
-
Copy full SHA for 2a6ad94 - Browse repository at this point
Copy the full SHA 2a6ad94View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2d147f - Browse repository at this point
Copy the full SHA b2d147fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e3da61 - Browse repository at this point
Copy the full SHA 7e3da61View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2fe41d - Browse repository at this point
Copy the full SHA e2fe41dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e1aeca - Browse repository at this point
Copy the full SHA 1e1aecaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5724c1 - Browse repository at this point
Copy the full SHA d5724c1View commit details -
Remove handling of
DialFailure
We only ever insert into the `peer_info` map for established connections. We either establish a connection or receive a `DialFailure`. Thus, there will never be any state in `peer_info` for a failed connection so there is nothing to be cleaned up.
Configuration menu - View commit details
-
Copy full SHA for de91c55 - Browse repository at this point
Copy the full SHA de91c55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3719440 - Browse repository at this point
Copy the full SHA 3719440View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b6d354 - Browse repository at this point
Copy the full SHA 7b6d354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ce2a01 - Browse repository at this point
Copy the full SHA 8ce2a01View commit details -
Rewrite dial-request to always index by nonce
The nonce of a probe is essentially like a primary key that is decided by the client. Thus, any event emitted by the handler should be indexed by the provided nonce. We can achieve this by using a `FuturesMap` instead of a `FuturesSet`. This gives us access to the nonce even in the case that the actual protocol times out. With the nonce in place, we had to re-model the event returned to the behaviour. Most importantly. we need to separate the different kinds of errors: - Complete execution of the protocol but address is not reachable - Protocol was aborted mid-way - Server does not support the protocol We can't really do anything if the protocols is aborted so we just represent this case with an `io::Error` that gets logged further up. As a result, this means we can remove the `Option` from the event emitted to the user and _always_ give them a `Multiaddr`.
Configuration menu - View commit details
-
Copy full SHA for 42ac03c - Browse repository at this point
Copy the full SHA 42ac03cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3181113 - Browse repository at this point
Copy the full SHA 3181113View commit details -
Configuration menu - View commit details
-
Copy full SHA for c51f8cc - Browse repository at this point
Copy the full SHA c51f8ccView commit details -
Merge pull request #2 from libp2p/autonatv2-thomas-followup
Follow-up commits for AutoNATv2
Configuration menu - View commit details
-
Copy full SHA for 88b1092 - Browse repository at this point
Copy the full SHA 88b1092View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d96c33 - Browse repository at this point
Copy the full SHA 4d96c33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a135ea - Browse repository at this point
Copy the full SHA 8a135eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for fac1196 - Browse repository at this point
Copy the full SHA fac1196View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ed44d9 - Browse repository at this point
Copy the full SHA 9ed44d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a974707 - Browse repository at this point
Copy the full SHA a974707View commit details
Commits on Jan 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 117075f - Browse repository at this point
Copy the full SHA 117075fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f2476a - Browse repository at this point
Copy the full SHA 3f2476aView commit details
Commits on Jan 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9254faa - Browse repository at this point
Copy the full SHA 9254faaView commit details
Commits on Feb 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 54e4c1f - Browse repository at this point
Copy the full SHA 54e4c1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d723c50 - Browse repository at this point
Copy the full SHA d723c50View commit details
Commits on Feb 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for daf2a0b - Browse repository at this point
Copy the full SHA daf2a0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b85b82 - Browse repository at this point
Copy the full SHA 6b85b82View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6afb5a - Browse repository at this point
Copy the full SHA e6afb5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b94a01 - Browse repository at this point
Copy the full SHA 0b94a01View commit details
Commits on Feb 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a09e26d - Browse repository at this point
Copy the full SHA a09e26dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 61ae32e - Browse repository at this point
Copy the full SHA 61ae32eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad6ad8f - Browse repository at this point
Copy the full SHA ad6ad8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbdc85f - Browse repository at this point
Copy the full SHA fbdc85fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 553511c - Browse repository at this point
Copy the full SHA 553511cView commit details
Commits on Feb 19, 2024
-
Update protocols/autonat/src/v2/client/behaviour.rs
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Configuration menu - View commit details
-
Copy full SHA for 9bf52d4 - Browse repository at this point
Copy the full SHA 9bf52d4View commit details -
Update protocols/autonat/src/v2/client/handler/dial_back.rs
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Configuration menu - View commit details
-
Copy full SHA for 70f41f3 - Browse repository at this point
Copy the full SHA 70f41f3View commit details -
Update protocols/autonat/src/v2/client/handler/dial_back.rs
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Configuration menu - View commit details
-
Copy full SHA for 0773694 - Browse repository at this point
Copy the full SHA 0773694View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89acd28 - Browse repository at this point
Copy the full SHA 89acd28View commit details -
Configuration menu - View commit details
-
Copy full SHA for d571e51 - Browse repository at this point
Copy the full SHA d571e51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10e4cee - Browse repository at this point
Copy the full SHA 10e4ceeView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4d671e - Browse repository at this point
Copy the full SHA d4d671eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dc574e - Browse repository at this point
Copy the full SHA 2dc574eView commit details
Commits on Mar 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 330fc51 - Browse repository at this point
Copy the full SHA 330fc51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f6f2f6 - Browse repository at this point
Copy the full SHA 5f6f2f6View commit details
Commits on Mar 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 367273a - Browse repository at this point
Copy the full SHA 367273aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d79bca3 - Browse repository at this point
Copy the full SHA d79bca3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8df0183 - Browse repository at this point
Copy the full SHA 8df0183View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d24d03 - Browse repository at this point
Copy the full SHA 5d24d03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41804be - Browse repository at this point
Copy the full SHA 41804beView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd495f9 - Browse repository at this point
Copy the full SHA bd495f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38be2b4 - Browse repository at this point
Copy the full SHA 38be2b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce7596c - Browse repository at this point
Copy the full SHA ce7596cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0506c7b - Browse repository at this point
Copy the full SHA 0506c7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b6dbb1 - Browse repository at this point
Copy the full SHA 0b6dbb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2fddd5 - Browse repository at this point
Copy the full SHA d2fddd5View commit details
Commits on Mar 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8f1fcbb - Browse repository at this point
Copy the full SHA 8f1fcbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8095e84 - Browse repository at this point
Copy the full SHA 8095e84View commit details
Commits on May 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0918ea8 - Browse repository at this point
Copy the full SHA 0918ea8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b07a463 - Browse repository at this point
Copy the full SHA b07a463View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0724086 - Browse repository at this point
Copy the full SHA 0724086View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45863c3 - Browse repository at this point
Copy the full SHA 45863c3View commit details