summaryrefslogtreecommitdiff
path: root/UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem
diff options
context:
space:
mode:
authorabuthahirm <abuthahirm@ami.com>2026-08-05 10:34:17 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-16 03:02:42 +0300
commit101195325ba0cbe8306f623555ddd6b1610acebd (patch)
tree8f44e9e4bda0c2f70526245046fa08787855666d /UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem
parente48d7192fafcdda509f32315c9a3f07cfa4d58e5 (diff)
downloadedk2-101195325ba0cbe8306f623555ddd6b1610acebd.tar.xz
NetworkPkg/HttpBootDxe: Accumulate PartialTransferredSize across retries
When an HTTP download fails with EFI_TIMEOUT or EFI_DEVICE_ERROR and is retried, PartialTransferredSize was overwritten with only the bytes received during that attempt instead of accumulating the running total. This caused the progress percentage to exceed 100%: on each retry the already-transferred bytes were ignored, so the buffer offset calculation started from an incorrect position and data was re-downloaded from an earlier offset. The cumulative ReceivedSize that feeds the percentage display therefore grew beyond FileSize. Fix by using += instead of = when updating PartialTransferredSize on a failed transfer so that cumulative progress is maintained across all retry attempts. Cc: Saloni Kasbekar <saloni.kasbekar@intel.com> Cc: Zachary Clark-williams <zachary.clark-williams@intel.com> Cc: Mike Beaton <mjsbeaton@gmail.com> Signed-off-by: abuthahirm <abuthahirm@ami.com>
Diffstat (limited to 'UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem')
0 files changed, 0 insertions, 0 deletions