NetworkPkg/HttpBootDxe: Report download error when resume attempts fail

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 <lbecker@positivo.com.br>
This commit is contained in:
Leandro Becker 2024-09-20 10:37:57 -03:00 committed by mergify[bot]
parent 081cf576a2
commit b3efbda166

View File

@ -388,7 +388,8 @@ HttpBootGetBootFileCaller (
ImageType ImageType
); );
if (!EFI_ERROR (Status) || if (!EFI_ERROR (Status) ||
((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR))) ((Status != EFI_TIMEOUT) && (Status != EFI_DEVICE_ERROR)) ||
(Retries >= PcdGet32 (PcdMaxHttpResumeRetries)))
{ {
break; break;
} }