NetworkPkg: Update Http driver to use DPC mechanism.

This patch updates the HttpDxe driver to use the DPC mechanism to avoid long
time delay when single event.

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@18451 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Fu Siyuan
2015-09-14 09:06:26 +00:00
committed by sfu5
parent ccb71333c2
commit 49c9f74cc1
4 changed files with 56 additions and 10 deletions

View File

@ -502,6 +502,8 @@ EfiHttpRequest (
goto Error5;
}
DispatchDpc ();
return EFI_SUCCESS;
Error5:
@ -1330,6 +1332,7 @@ EfiHttpPoll (
)
{
HTTP_PROTOCOL *HttpInstance;
EFI_STATUS Status;
if (This == NULL) {
return EFI_INVALID_PARAMETER;
@ -1346,5 +1349,9 @@ EfiHttpPoll (
return EFI_NOT_STARTED;
}
return HttpInstance->Tcp4->Poll (HttpInstance->Tcp4);
Status = HttpInstance->Tcp4->Poll (HttpInstance->Tcp4);
DispatchDpc ();
return Status;
}