]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg: Update cache management in HTTP boot driver.
authorFu Siyuan <siyuan.fu@intel.com>
Mon, 14 Sep 2015 09:05:12 +0000 (09:05 +0000)
committersfu5 <sfu5@Edk2>
Mon, 14 Sep 2015 09:05:12 +0000 (09:05 +0000)
commit7fd71047a6d355408b5eb7238c880a75c1a247d9
treebbef213b46473cf2c2a14b2c0f18e985f364b5df
parentb5780309723433a476b182aef2d1ceb6380e9ab2
NetworkPkg: Update cache management in HTTP boot driver.

The original HTTP boot driver always save the received message body in its cache,
it bring a large of memory allocation during HTTP download. This patch updates
the HTTP boot driver to only cache data when caller doesn't provide a buffer for
download (which is usually used when caller want to get the required buffer size).

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@18448 6f19259b-4bc3-4df7-8a09-765794883524
NetworkPkg/HttpBootDxe/HttpBootClient.c