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>
HttpIo->Http = Http;\r
HttpIo->Callback = Callback;\r
HttpIo->Context = Context;\r
HttpIo->Http = Http;\r
HttpIo->Callback = Callback;\r
HttpIo->Context = Context;\r
+ HttpIo->Timeout = PcdGet32 (PcdHttpIoTimeout);\r
\r
if (ConfigData != NULL) {\r
if (HttpIo->IpVersion == IP_VERSION_4) {\r
\r
if (ConfigData != NULL) {\r
if (HttpIo->IpVersion == IP_VERSION_4) {\r
\r
[Pcd]\r
gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer ## SOMETIMES_CONSUMES\r
\r
[Pcd]\r
gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer ## SOMETIMES_CONSUMES\r
+ gEfiNetworkPkgTokenSpaceGuid.PcdHttpIoTimeout ## SOMETIMES_CONSUMES\r
#\r
# This package provides network modules that conform to UEFI 2.4 specification.\r
#\r
#\r
# This package provides network modules that conform to UEFI 2.4 specification.\r
#\r
-# Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
# @Prompt Max size of total HTTP chunk transfer. the default value is 12MB.\r
gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer|0x0C00000|UINT32|0x0000000E\r
\r
# @Prompt Max size of total HTTP chunk transfer. the default value is 12MB.\r
gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer|0x0C00000|UINT32|0x0000000E\r
\r
+ ## The Timeout value of HTTP IO.\r
+ # @Prompt The Timeout value of HTTP Io. Default value is 5000.\r
+ gEfiNetworkPkgTokenSpaceGuid.PcdHttpIoTimeout|5000|UINT32|0x0000000F\r
+\r
[PcdsFixedAtBuild, PcdsPatchableInModule]\r
## Indicates whether HTTP connections (i.e., unsecured) are permitted or not.\r
# TRUE - HTTP connections are allowed. Both the "https://" and "http://" URI schemes are permitted.\r
[PcdsFixedAtBuild, PcdsPatchableInModule]\r
## Indicates whether HTTP connections (i.e., unsecured) are permitted or not.\r
# TRUE - HTTP connections are allowed. Both the "https://" and "http://" URI schemes are permitted.\r