Reviewed-by: Ye Ting <ting...@intel.com> 

-----Original Message-----
From: Fu, Siyuan 
Sent: Monday, September 14, 2015 4:24 PM
To: edk2-devel@lists.01.org
Cc: Ye, Ting; Wu, Jiaxin
Subject: [Patch 1/4] 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...@intel.com>
---
 NetworkPkg/HttpBootDxe/HttpBootClient.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NetworkPkg/HttpBootDxe/HttpBootClient.h 
b/NetworkPkg/HttpBootDxe/HttpBootClient.h
index 2dfafab..06b9109 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"
--
2.5.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to