summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFu Siyuan <siyuan.fu@intel.com>2015-09-15 05:38:43 +0000
committerhwu1225 <hwu1225@Edk2>2015-09-15 05:38:43 +0000
commita565ec4117d31256151d8ce343a7c943c97bae40 (patch)
tree9ab492b627e74e8620ea0e8c330fd73ed4b54642
parente5a9019a501bdde2fa22f5ca4d5ac651dd2d89cf (diff)
downloadedk2-platforms-a565ec4117d31256151d8ce343a7c943c97bae40.tar.xz
NetworkPkg: Enlarge receive block size of HTTP boot driver.
HTTP boot driver uses block size of 1024 when receiving HTTP message body, but typically the MTU of Ethernet is 1500 bytes so it makes 1 TCP segment data split into 2 Http.Response call. This patch enlarges the block size to avoid this issue. (Sync patch r18447 from main trunk.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@18457 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--NetworkPkg/HttpBootDxe/HttpBootClient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootClient.h b/NetworkPkg/HttpBootDxe/HttpBootClient.h
index 2dfafab936..06b91098fc 100644
--- a/NetworkPkg/HttpBootDxe/HttpBootClient.h
+++ b/NetworkPkg/HttpBootDxe/HttpBootClient.h
@@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define __EFI_HTTP_BOOT_HTTP_H__
#define HTTP_BOOT_REQUEST_TIMEOUT 5000 // 5 seconds in uints of millisecond.
-#define HTTP_BOOT_BLOCK_SIZE 1024
+#define HTTP_BOOT_BLOCK_SIZE 1500
#define HTTP_FIELD_NAME_USER_AGENT "User-Agent"
#define HTTP_FIELD_NAME_HOST "Host"