radicle-heartwood-lfs/radicle-node/src
Fintan Halpenny bb4ed84b95
node: duplicate fetching logic respects RefsAt
Two concurrent fetches can occur from the same peer, while also being
for a different set of references. This was seen in the
`test_outdated_sigrefs` test. Alice would have an ongoing fetch from
Eve, and concurrently, Eve will create a new issue -- thus creating a
new `RefsAt` message -- and Alice would attempt to fetch this.

The previous logic would only check that Alice is fetching from Eve
and ignore the new updates -- meaning the test could fail. However, if
the `RefsAt` are checked then the other fetch can be recognised as
new, and queue it.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-03-09 13:43:08 +01:00
..
runtime node: Expose listen addresses 2024-02-26 12:35:20 +01:00
service node: Don't limit LAN addresses 2024-02-26 13:42:06 +01:00
test node: Expose listen addresses 2024-02-26 12:35:20 +01:00
tests node: duplicate fetching logic respects RefsAt 2024-03-09 13:43:08 +01:00
wire node: Expose listen addresses 2024-02-26 12:35:20 +01:00
worker node: do not delete cob in cache after fetch 2024-03-08 23:43:19 +01:00
bounded.rs node: loosen BoundedVec::collect_from bounds 2023-11-17 16:09:42 +01:00
control.rs node: Expose listen addresses 2024-02-26 12:35:20 +01:00
deserializer.rs node: Implement protocol multiplexing 2023-04-10 14:41:55 +02:00
lib.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
main.rs node: Increase process ulimit on start 2024-01-17 17:34:25 +01:00
runtime.rs node: Expose listen addresses 2024-02-26 12:35:20 +01:00
service.rs node: duplicate fetching logic respects RefsAt 2024-03-09 13:43:08 +01:00
signals.rs node: Handle `SIGINT` and `SIGTERM` properly 2023-02-14 13:28:16 +01:00
test.rs radicle: expose shared logger 2023-12-20 15:11:10 +01:00
tests.rs radicle: implement caching for issues and patches 2024-02-23 16:03:21 +01:00
wire.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
worker.rs radicle: implement caching for issues and patches 2024-02-23 16:03:21 +01:00