Set larger buffer size to mitigate lags on client connect.

This commit is contained in:
Themaister 2012-01-11 20:14:59 +01:00
parent 4beec3870f
commit 6325b4cd2e

View File

@ -910,6 +910,9 @@ static void netplay_pre_frame_spectate(netplay_t *handle)
return;
}
int bufsize = header_size;
setsockopt(new_fd, SOL_SOCKET, SO_SNDBUF, CONST_CAST &bufsize, sizeof(int));
const uint8_t *tmp_header = header;
while (header_size)
{