Raise buffer and remove timeout

This commit is contained in:
Tixx 2025-01-11 22:13:12 +01:00
parent f4e985976f
commit a5d450b680
No known key found for this signature in database
GPG Key ID: EC6E7A2BAABF0B8C

View File

@ -138,13 +138,8 @@ void GetServerInfo(std::string Data) {
}
std::string buffer;
buffer.resize(1024);
struct timeval timeout;
timeout.tv_sec = 10;
timeout.tv_usec = 0;
setsockopt(ISock, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout, sizeof(timeout));
buffer.resize(8192);
int bytesReceived = recv(ISock, &buffer[0], buffer.size() - 1, 0);
if (bytesReceived > 0) {