internal void CancelLastWrite(SafeHandle requestQueueHandle)
{
HttpResponseStreamAsyncResult asyncState = _lastWrite;
if (asyncState != null && !asyncState.IsCompleted)
{
// It is safe to ignore the return value on a cancel operation because the connection is being closed
Interop.Kernel32.CancelIoEx(requestQueueHandle, asyncState._pOverlapped);
}
}
}