mirror of https://github.com/acidanthera/audk.git
DxeHttpIoLib: Http boot failure with no initializes timeout value.
https://bugzilla.tianocore.org/show_bug.cgi?id=3170 Using PcdHttpIoTimeout to set default timeout value to HttpIoLib. Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Signed-off-by: GregX Yeh <gregx.yeh@intel.com> Reviewed-by: Siyuan Fu <siyuan.fu@intel.com> Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
This commit is contained in:
parent
6e55868631
commit
ca272b9513
|
@ -189,6 +189,7 @@ HttpIoCreateIo (
|
|||
HttpIo->Http = Http;
|
||||
HttpIo->Callback = Callback;
|
||||
HttpIo->Context = Context;
|
||||
HttpIo->Timeout = PcdGet32 (PcdHttpIoTimeout);
|
||||
|
||||
if (ConfigData != NULL) {
|
||||
if (HttpIo->IpVersion == IP_VERSION_4) {
|
||||
|
|
|
@ -43,3 +43,4 @@
|
|||
|
||||
[Pcd]
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer ## SOMETIMES_CONSUMES
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdHttpIoTimeout ## SOMETIMES_CONSUMES
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
# This package provides network modules that conform to UEFI 2.4 specification.
|
||||
#
|
||||
# Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
|
||||
# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
@ -97,6 +97,10 @@
|
|||
# @Prompt Max size of total HTTP chunk transfer. the default value is 12MB.
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer|0x0C00000|UINT32|0x0000000E
|
||||
|
||||
## The Timeout value of HTTP IO.
|
||||
# @Prompt The Timeout value of HTTP Io. Default value is 5000.
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdHttpIoTimeout|5000|UINT32|0x0000000F
|
||||
|
||||
[PcdsFixedAtBuild, PcdsPatchableInModule]
|
||||
## Indicates whether HTTP connections (i.e., unsecured) are permitted or not.
|
||||
# TRUE - HTTP connections are allowed. Both the "https://" and "http://" URI schemes are permitted.
|
||||
|
|
Loading…
Reference in New Issue