Fast reads
This commit is contained in:
parent
5e5aa90575
commit
7a14be006d
|
|
@ -206,8 +206,10 @@ http_read_request_bytes(
|
||||||
}
|
}
|
||||||
IHttpRequest *pHttpRequest = (IHttpRequest*)pInProcessHandler->QueryHttpContext()->GetRequest();
|
IHttpRequest *pHttpRequest = (IHttpRequest*)pInProcessHandler->QueryHttpContext()->GetRequest();
|
||||||
|
|
||||||
BOOL fAsync = TRUE;
|
|
||||||
|
|
||||||
|
if (pHttpRequest->GetRemainingEntityBytes() > 0)
|
||||||
|
{
|
||||||
|
BOOL fAsync = TRUE;
|
||||||
hr = pHttpRequest->ReadEntityBody(
|
hr = pHttpRequest->ReadEntityBody(
|
||||||
pvBuffer,
|
pvBuffer,
|
||||||
dwCbBuffer,
|
dwCbBuffer,
|
||||||
|
|
@ -220,6 +222,12 @@ http_read_request_bytes(
|
||||||
// We reached the end of the data
|
// We reached the end of the data
|
||||||
hr = S_OK;
|
hr = S_OK;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// nothing to read
|
||||||
|
hr = S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue