]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: RxToken event not closed in Http.Response().
authorFu Siyuan <siyuan.fu@intel.com>
Mon, 14 Sep 2015 09:06:02 +0000 (09:06 +0000)
committersfu5 <sfu5@Edk2>
Mon, 14 Sep 2015 09:06:02 +0000 (09:06 +0000)
This patch contains a bug fix in HTTP driver that the RxToken is not closed,
this is one of the main reasons which lower the HTTP download speed.

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@18450 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/HttpDxe/HttpProto.c

index 99f907e10c7f96e8598d90de41e1a0b6e27c9038..9b06e24bed0ecd4b814dec481c2dc621ded44b6c 100644 (file)
@@ -104,6 +104,7 @@ HttpTcpReceiveNotify (
   }\r
 \r
   Wrap = (HTTP_TOKEN_WRAP *) Context;\r
+  gBS->CloseEvent (Wrap->TcpWrap.RxToken.CompletionToken.Event);\r
   if (EFI_ERROR (Wrap->TcpWrap.RxToken.CompletionToken.Status)) {\r
     return ;\r
   }\r