Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
fetch: improve the fetch protocol
Merged fintohaps opened 2 years ago

Logging the stages of the fetch protocol is added to get some insight of how far a fetch gets, while also providing some simple timings using Instant::elapsed.

This allowed me to run a local client version of this fetch protocol and see what was happening. The 9s timeout was hit for the channel methods. So this was increased to 30s.

From there, I was able to see that a rad clone of an offending repository was actually “finishing” but the final error would say that the other side had disconnected. This lead to the realisation that the call to done can be a fire and forget – log the error and continue on with validation and refdb updates. I was then able to confirm that the clone of the offending repository was able to be performed.

fintohaps opened with revision a2abb338 on base a48081f2 +79 -21 2 years ago

Logging the stages of the fetch protocol is added to get some insight of how far a fetch gets, while also providing some simple timings using Instant::elapsed.

This allowed me to run a local client version of this fetch protocol and see what was happening. The 9s timeout was hit for the channel methods. So this was increased to 30s.

From there, I was able to see that a rad clone of an offending repository was actually “finishing” but the final error would say that the other side had disconnected. This lead to the realisation that the call to done can be a fire and forget – log the error and continue on with validation and refdb updates. I was then able to confirm that the clone of the offending repository was able to be performed.

fintohaps pushed revision 2 89f9c3f2 on base a48081f2 +83 -25 2 years ago

Changes:

  • Change timings from seconds to milliseconds
  • Downgrade noisy debug logs to trace
did:key:z6MksFqX...wzpT pushed revision 3 678067c6 on base 87d1cb50 +86 -27 2 years ago

Rebase, fix logs.

did:key:z6MksFqX...wzpT pushed revision 4 f3453a88 on base 87d1cb50 +86 -27 2 years ago

Fix commit authorship.

did:key:z6MksFqX...wzpT merged revision f3453a88 at b1435629 2 years ago