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