From 6325b4cd2ea24e9058ef18042c05da07d86e0165 Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 11 Jan 2012 20:14:59 +0100 Subject: [PATCH] Set larger buffer size to mitigate lags on client connect. --- netplay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netplay.c b/netplay.c index 92706f596c..a1def20131 100644 --- a/netplay.c +++ b/netplay.c @@ -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) {