switch to compression with limit at 30 MB

This commit is contained in:
Lion Kortlepel
2024-06-22 22:48:00 +02:00
parent e0e2607632
commit f2b34543f9
5 changed files with 68 additions and 54 deletions

View File

@@ -112,7 +112,9 @@ std::string TCPRcv(SOCKET Sock) {
std::string Ret(Data.data(), Header);
if (Ret.substr(0, 4) == "ABG:") {
Ret = DeComp(Ret.substr(4));
auto substr = Ret.substr(4);
auto res = DeComp(std::span<char>(substr.data(), substr.size()));
Ret = std::string(res.data(), res.size());
}
#ifdef DEBUG