radicle-heartwood-lfs/radicle-node/src
Alexis Sellier cd12741bf2
node: Prevent redundant [re-]connections
It was possible to trigger multiple connection attempts to the same
peer, since we didn't track connection attempts that hadn't yet
returned to the service via `Service::attempted`.

With this change, we add an extra `Initial` state to sessions, so
that redundant connections are not attempted when one is already under
way.
2023-03-14 13:42:59 +01:00
..
address node: Use millisecond precision for timestamps 2023-02-14 20:31:40 +01:00
runtime node: Rename `tracked_repo` -> `repo_policies` 2023-03-13 11:41:07 +01:00
service node: Prevent redundant [re-]connections 2023-03-14 13:42:59 +01:00
test node: Prevent redundant [re-]connections 2023-03-14 13:42:59 +01:00
tests node: test do not fetch from owned refs 2023-03-08 11:33:42 +00:00
wire node: Call service on failed connection attempt 2023-03-13 16:31:00 +01:00
address.rs Remove unused type 2022-10-18 12:37:01 +02:00
bounded.rs node: Complete the "relay" seed test 2023-02-14 20:31:40 +01:00
clock.rs node: Use millisecond precision for timestamps 2023-02-14 20:31:40 +01:00
control.rs node: Rename `tracked_repo` -> `repo_policies` 2023-03-13 11:41:07 +01:00
deserializer.rs Replace `quickcheck` with `qcheck` 2022-12-04 20:40:54 +01:00
lib.rs crypto: Cleanup `hash` module 2023-02-17 10:51:27 +01:00
logger.rs Rust 1.67 2023-02-04 19:30:29 +01:00
main.rs node: add tracking-scope option 2023-03-13 12:13:12 +01:00
runtime.rs node: Bind control socket immediately 2023-03-09 16:31:49 +01:00
service.rs node: Prevent redundant [re-]connections 2023-03-14 13:42:59 +01:00
signals.rs node: Handle `SIGINT` and `SIGTERM` properly 2023-02-14 13:28:16 +01:00
sql.rs Use database transactions where appropriate 2022-11-08 09:39:23 +01:00
test.rs node: Create shared test environment 2023-02-07 10:46:12 +01:00
tests.rs node: Prevent redundant [re-]connections 2023-03-14 13:42:59 +01:00
wire.rs crypto: Cleanup `hash` module 2023-02-17 10:51:27 +01:00
worker.rs node: improve fetch 2023-03-08 11:29:34 +00:00