diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2015-09-14 09:04:25 +0000 |
---|---|---|
committer | sfu5 <sfu5@Edk2> | 2015-09-14 09:04:25 +0000 |
commit | b5780309723433a476b182aef2d1ceb6380e9ab2 (patch) | |
tree | 7abe634c14c6a8cff767324d75ef4dc3bde7bf0d /NetworkPkg/HttpBootDxe | |
parent | 00261e1dc62ec078391f0239683ba7a709d3122d (diff) | |
download | edk2-platforms-b5780309723433a476b182aef2d1ceb6380e9ab2.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.
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/trunk/edk2@18447 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg/HttpBootDxe')
-rw-r--r-- | NetworkPkg/HttpBootDxe/HttpBootClient.h | 2 |
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"
|