diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2015-09-14 09:06:02 +0000 |
---|---|---|
committer | sfu5 <sfu5@Edk2> | 2015-09-14 09:06:02 +0000 |
commit | ccb71333c2d3af870dee201274271397ed92c5e1 (patch) | |
tree | 310b7f56b36610418b105719628aa28588da619a | |
parent | 51b0450e002431b7cb902220c513ddaf589f3600 (diff) | |
download | edk2-platforms-ccb71333c2d3af870dee201274271397ed92c5e1.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.
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
-rw-r--r-- | NetworkPkg/HttpDxe/HttpProto.c | 1 |
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 ;
}
|