[*] Fix Win32 pipe regression
[*] Fix Win32 network regression
This commit is contained in:
parent
ff65193d0f
commit
9b1ff8889e
@ -126,6 +126,8 @@ namespace Aurora::IO
|
||||
this->iStartTickMS_ = AuTime::CurrentClockMS();
|
||||
|
||||
if (this->pAsyncTransaction_)
|
||||
{
|
||||
if (!this->bShouldBypassIOWatch)
|
||||
{
|
||||
auto pWaitable = this->pAsyncAdapter_->ToWaitable();
|
||||
if (pWaitable)
|
||||
@ -141,6 +143,7 @@ namespace Aurora::IO
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = this->parent_->parent_->StartIOWatch(this->input_.pWatchItem, AuSharedFromThis());
|
||||
|
@ -104,6 +104,7 @@ namespace Aurora::IO
|
||||
AuMemoryViewWrite nextWriteAsync_;
|
||||
IOPipeRequest request {};
|
||||
bool bShouldReadNext { false };
|
||||
bool bShouldBypassIOWatch { false };
|
||||
|
||||
bool IsAtRequestedEnd();
|
||||
AuByteBuffer *GetBuffer();
|
||||
|
@ -598,8 +598,6 @@ namespace Aurora::IO::FS
|
||||
{
|
||||
DWORD read {};
|
||||
|
||||
this->dwLastAbstractStat = 0;
|
||||
|
||||
if (this->isIrredeemable_)
|
||||
{
|
||||
::ResetEvent(this->event);
|
||||
|
@ -99,11 +99,7 @@ namespace Aurora::IO::Net
|
||||
return;
|
||||
}
|
||||
|
||||
if (!pReader->Start())
|
||||
{
|
||||
this->pParent_->SendErrorNoStream({});
|
||||
return;
|
||||
}
|
||||
AuStaticCast<IOPipeWork>(pReader)->bShouldBypassIOWatch = true;
|
||||
|
||||
auto pTX = this->pNetReadTransaction;
|
||||
if (!pTX)
|
||||
@ -112,7 +108,14 @@ namespace Aurora::IO::Net
|
||||
return;
|
||||
}
|
||||
|
||||
pTX->SetCallback(sharedThis);//; AuSPtr<IAsyncFinishedSubscriber>(this->pParent_->SharedFromThis(), this));
|
||||
pTX->SetCallback(sharedThis);
|
||||
|
||||
if (!pReader->Start())
|
||||
{
|
||||
this->pParent_->SendErrorNoStream({});
|
||||
return;
|
||||
}
|
||||
|
||||
IncrementWorker();
|
||||
}
|
||||
|
||||
|
@ -434,7 +434,8 @@ namespace Aurora::IO::Net
|
||||
bool NtAsyncNetworkTransaction::HasCompleted()
|
||||
{
|
||||
return this->bHasFailed ||
|
||||
this->dwLastBytes;
|
||||
this->dwLastBytes ||
|
||||
this->bLatch;
|
||||
}
|
||||
|
||||
AuUInt NtAsyncNetworkTransaction::GetOSErrorCode()
|
||||
@ -461,16 +462,22 @@ namespace Aurora::IO::Net
|
||||
{
|
||||
AuLoop::ILSEvent *optEvent {};
|
||||
|
||||
if (auto pLoopSource = this->pCompletionGroup_->GetTriggerLoopSource())
|
||||
if (auto pCompletionGroup = this->pCompletionGroup_)
|
||||
{
|
||||
if (auto pLoopSource = pCompletionGroup->GetTriggerLoopSource())
|
||||
{
|
||||
return pLoopSource;
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
|
||||
if (auto pWaitable = this->pWaitable)
|
||||
{
|
||||
return pWaitable;
|
||||
}
|
||||
|
||||
if (auto pSocket = this->pSocket)
|
||||
{
|
||||
return AuStaticCast<AuLoop::LSEvent>(pSocket->ToWorkerEx()->ToEvent());
|
||||
}
|
||||
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user