Re: [PATCH v2 05/10] bundle-uri: download in creationToken order
- From
Derrick Stolee <derrickstolee@github.com>
- Date
- Jan 30, 2023, 19:12 UTC
- Message-ID
- <b6b76b2c-3a81-a612-d2ca-93b2b660feeb@github.com>
- In-Reply-To
- <xmqqtu073kx1.fsf@gitster.g>
On 1/30/2023 2:02 PM, Junio C Hamano wrote:
Show 11 quoted lines
> Derrick Stolee <derrickstolee@github.com> writes: > >> I think there are two possible directions we can have when talking >> about interrupted downloads: >> >> 1. The network connection was disconnected, and the client may want >> to respond to that with a retry and a ranged request. >> >> 2. The client process itself terminates for some reason, and a >> second process recognizes that some of the data already exists >> and could be used for a range request of the remainder.
...
> Mostly. We probably do not want / need to cater to "I killed it > with ^C and would want to continue".
I mention it because it has been mentioned to me as an example use case. This includes other failures, such as power outages.
I don't think we have range requests enabled for the longer-lived packfile-uri, but we shall see if adoption of bundle URIs presents more motivation to build that feature. Case (1) will be the easiest to consider, and I agree that it would be more generally useful.
Thanks, -Stolee