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
This commit is contained in:
Fu Siyuan 2015-09-14 09:06:02 +00:00 committed by sfu5
parent 51b0450e00
commit ccb71333c2
1 changed files with 1 additions and 0 deletions

View File

@ -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 ;
}