From ccb71333c2d3af870dee201274271397ed92c5e1 Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Mon, 14 Sep 2015 09:06:02 +0000 Subject: [PATCH] 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 Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18450 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/HttpDxe/HttpProto.c | 1 + 1 file changed, 1 insertion(+) 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 ; }