[*] Solve two Linux regressions introduced/poorly worked around in: e7597b8463, 592afe00a7

This commit is contained in:
Reece Wilson 2024-07-02 05:15:19 +01:00
parent e7597b8463
commit cb69a7e737
2 changed files with 4 additions and 11 deletions

View File

@ -459,10 +459,10 @@ namespace Aurora::IO::Net
{ {
return false; return false;
} }
freeaddrinfo(pItr);
} }
freeaddrinfo(this->gnuAsyncOperation.ar_result);
return true; return true;
} }

View File

@ -262,7 +262,8 @@ namespace Aurora::IO::Net
bool LinuxAsyncNetworkTransaction::HasCompleted() bool LinuxAsyncNetworkTransaction::HasCompleted()
{ {
return this->bHasFailed || return this->bHasFailed ||
this->dwLastBytes; this->dwLastBytes ||
this->bLatch;
} }
AuUInt LinuxAsyncNetworkTransaction::GetOSErrorCode() AuUInt LinuxAsyncNetworkTransaction::GetOSErrorCode()
@ -389,14 +390,6 @@ namespace Aurora::IO::Net
SysPushErrorCatch(); SysPushErrorCatch();
} }
} }
if (!read)
{
if (this->pSocket)
{
this->pSocket->SendEnd();
}
}
} }
int LinuxAsyncNetworkTransaction::GetSocket() int LinuxAsyncNetworkTransaction::GetSocket()