mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
pullProgressReporter samples activeReqs and totalBytesRead on a periodic ticker. A response with an empty body, such as a manifest Resolve HEAD request, does not increment totalBytesRead. In addition, an activeReqs transition to zero and back to one between ticker ticks is not observed by the ticker. In both cases, lastSeenTimestamp is not updated and a subsequent request can be cancelled before it has run for timeout. Record the timestamp of the most recent request start, response header receipt, or body byte read in pullRequestReporter, and advance lastSeenTimestamp from that timestamp on each tick. Assisted-by: Antigravity Signed-off-by: Samuel Karp <samuelkarp@google.com>