Skip to content

Commit

Permalink
NetworkPkg/HttpBootDxe: Report download error when resume attempts fail
Browse files Browse the repository at this point in the history
When all resume attempts to continue an interrupted NBP file
download have failed, report the failure status to the caller.

Original implementation was returning success when number of
retries reaches the limit defined by PcdMaxHttpResumeRetries.

Signed-off-by: Leandro Gustavo Biss Becker <[email protected]>
  • Loading branch information
leandrobecker-pst committed Sep 20, 2024
1 parent 222e285 commit 7919f81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NetworkPkg/HttpBootDxe/HttpBootImpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ HttpBootGetBootFileCaller (
ImageType
);
if (!EFI_ERROR (Status) ||
((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR)))
((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR)) ||
(Retries >= PcdGet32 (PcdMaxHttpResumeRetries)))
{
break;
}
Expand Down

0 comments on commit 7919f81

Please sign in to comment.