mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08:00 
			
		
		
		
	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
					Leandro Becker
				
			
				
					committed by
					
						![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						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