[+] ENetworkError::eBrokenByteBuffer
This commit is contained in:
parent
72fd8d018e
commit
08c37454fe
@ -33,6 +33,7 @@ namespace Aurora::IO::Net
|
||||
eServiceRefused,
|
||||
eServiceTaken,
|
||||
eBrokenAIOPipe,
|
||||
eBrokenByteBuffer
|
||||
eUnknown
|
||||
));
|
||||
}
|
@ -126,6 +126,14 @@ namespace Aurora::IO::Net
|
||||
void SocketChannelInput::OnPipePartialEvent(AuUInt transferred)
|
||||
{
|
||||
// Other method is used
|
||||
|
||||
if (auto pBuffer = this->AsReadableByteBuffer())
|
||||
{
|
||||
if (pBuffer->HasStreamError())
|
||||
{
|
||||
this->pParent_->SendErrorBeginShutdown(AuNet::ENetworkError::eBrokenByteBuffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SocketChannelInput::OnPipeReallocEvent(bool bSuccess)
|
||||
|
@ -237,6 +237,13 @@ namespace Aurora::IO::Net
|
||||
else
|
||||
{
|
||||
this->pNetWriteTransaction_->SetCallback({});
|
||||
|
||||
if (this->outputBuffer_.HasStreamError())
|
||||
{
|
||||
this->pParent_->SendErrorBeginShutdown(AuNet::ENetworkError::eBrokenByteBuffer);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this->bShutdownOnComplete)
|
||||
{
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user