[*] 3c8442d8 regressed DNS based connect

[*] improved an error message
This commit is contained in:
Reece Wilson 2023-09-23 20:36:28 +01:00
parent 53215e57b1
commit 374df4a92b
2 changed files with 4 additions and 2 deletions

View File

@ -174,7 +174,9 @@ namespace Aurora::IO::Net
AuList<NetSocketConnectBase> names;
for (auto &ip : *ips)
{
names.push_back(NetSocketConnectBase(ip, pThat->remoteEndpoint_.uPort));
NetSocketConnectBase base(ip, pThat->remoteEndpoint_.uPort);
base.byEndpoint.value().transportProtocol = this->remoteEndpoint_.transportProtocol;
names.push_back(base);
}
pThat->connectMany_.names = names;

View File

@ -228,7 +228,7 @@ namespace Aurora::IO::Net
if (!this->pNetWriteTransaction_->StartWrite(0, pFrameToSend))
{
this->pParent_->ToWorkerEx()->DecrementIOEventTaskCounter();
SysPushErrorIO("Couldn't dispatch the to-send frame");
SysPushErrorIO("Couldn't dispatch the to-send frame, had: {} bytes remaining to send", pFrameToSend->length);
this->pParent_->SendErrorBeginShutdown({});
return false;
}