update issue #32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So, an update consists of updating the git (git pull), dumping the git state, and then downloading tarballs that are not yet in the archive.
The trouble is that a download may stall since we don't timeout. And if such a download stalls, the entire "Lwt.async (sleep 1 hour >>= update)" stalls. And we'll never get to see updates again.
A good solution may be to add a timeout to the download process, as it is in normal TCP stacks with keep-alive... But a perfect timeout wouldn't be "this may only take 3 minutes", but instead "if there's no progress within Y minutes, consider this to be a failure".