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:
committed by
mergify[bot]
parent
081cf576a2
commit
b3efbda166
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user