Merge branch 'main' into dev

This commit is contained in:
MihailRis
2025-10-01 00:07:53 +03:00
23 changed files with 153 additions and 87 deletions
+2 -2
View File
@@ -379,7 +379,6 @@ public:
}
totalDownload += size;
}
logger.debug() << "read " << size << " bytes from " << to_string(addr);
}
}
@@ -697,7 +696,8 @@ public:
while (open) {
int size = recv(descriptor, buffer.data(), buffer.size(), 0);
if (size <= 0) {
logger.error() <<id <<"udp connection " << id << handle_socket_error(" recv error").what();
logger.error() << "udp connection " << id
<< handle_socket_error(" recv error").what();
if (!open) break;
closesocket(descriptor);
state = ConnectionState::CLOSED;