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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user