Revision: 18447
          http://sourceforge.net/p/edk2/code/18447
Author:   sfu5
Date:     2015-09-14 09:04:25 +0000 (Mon, 14 Sep 2015)
Log Message:
-----------
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>
Reviewed-by: Ye Ting <ting...@intel.com>

Modified Paths:
--------------
    trunk/edk2/NetworkPkg/HttpBootDxe/HttpBootClient.h

Modified: trunk/edk2/NetworkPkg/HttpBootDxe/HttpBootClient.h
===================================================================
--- trunk/edk2/NetworkPkg/HttpBootDxe/HttpBootClient.h  2015-09-14 07:12:29 UTC 
(rev 18446)
+++ trunk/edk2/NetworkPkg/HttpBootDxe/HttpBootClient.h  2015-09-14 09:04:25 UTC 
(rev 18447)
@@ -16,7 +16,7 @@
 #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"


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to