From 374df4a92b03d290bbf023b8332e4dc9de56cf2d Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 23 Sep 2023 20:36:28 +0100 Subject: [PATCH] [*] 3c8442d8 regressed DNS based connect [*] improved an error message --- Source/IO/Net/AuNetSocket.cpp | 4 +++- Source/IO/Net/AuNetSocketChannelOutput.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/IO/Net/AuNetSocket.cpp b/Source/IO/Net/AuNetSocket.cpp index a8b8997d..49fa93d2 100644 --- a/Source/IO/Net/AuNetSocket.cpp +++ b/Source/IO/Net/AuNetSocket.cpp @@ -174,7 +174,9 @@ namespace Aurora::IO::Net AuList 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; diff --git a/Source/IO/Net/AuNetSocketChannelOutput.cpp b/Source/IO/Net/AuNetSocketChannelOutput.cpp index 66bc7b1e..7aacbe4c 100644 --- a/Source/IO/Net/AuNetSocketChannelOutput.cpp +++ b/Source/IO/Net/AuNetSocketChannelOutput.cpp @@ -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; }