mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
Raise buffer and remove timeout
This commit is contained in:
parent
f4e985976f
commit
a5d450b680
@ -138,13 +138,8 @@ void GetServerInfo(std::string Data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string buffer;
|
std::string buffer;
|
||||||
buffer.resize(1024);
|
buffer.resize(8192);
|
||||||
|
|
||||||
struct timeval timeout;
|
|
||||||
timeout.tv_sec = 10;
|
|
||||||
timeout.tv_usec = 0;
|
|
||||||
setsockopt(ISock, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout, sizeof(timeout));
|
|
||||||
|
|
||||||
int bytesReceived = recv(ISock, &buffer[0], buffer.size() - 1, 0);
|
int bytesReceived = recv(ISock, &buffer[0], buffer.size() - 1, 0);
|
||||||
|
|
||||||
if (bytesReceived > 0) {
|
if (bytesReceived > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user