summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFu Siyuan <siyuan.fu@intel.com>2015-09-15 05:39:48 +0000
committerhwu1225 <hwu1225@Edk2>2015-09-15 05:39:48 +0000
commit07e11eedfc6edff2a03df5105e7a8ae9946c16f6 (patch)
tree445ec8c0a95e8f7005a610f6e7807d7d915460f2
parentd277707a56041fad7a99dd345e9d151b87bf0519 (diff)
downloadedk2-platforms-07e11eedfc6edff2a03df5105e7a8ae9946c16f6.tar.xz
NetworkPkg: RxToken event not closed in Http.Response().
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. (Sync patch r18450 from main trunk.) 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/branches/UDK2015@18460 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--NetworkPkg/HttpDxe/HttpProto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/NetworkPkg/HttpDxe/HttpProto.c b/NetworkPkg/HttpDxe/HttpProto.c
index 99f907e10c..9b06e24bed 100644
--- a/NetworkPkg/HttpDxe/HttpProto.c
+++ b/NetworkPkg/HttpDxe/HttpProto.c
@@ -104,6 +104,7 @@ HttpTcpReceiveNotify (
}
Wrap = (HTTP_TOKEN_WRAP *) Context;
+ gBS->CloseEvent (Wrap->TcpWrap.RxToken.CompletionToken.Event);
if (EFI_ERROR (Wrap->TcpWrap.RxToken.CompletionToken.Status)) {
return ;
}