From 2dfa05663dd67d4d7c68f96df0b1ab733b2063c2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Oct 2016 12:59:00 +0300 Subject: [PATCH] Increase Communicator buffer size to 64k This is the current maximum size for a packet, and there isn't really any need to use a smaller buffer. --- source/net/communicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/communicator.cpp b/source/net/communicator.cpp index 051e45a..3d6353a 100644 --- a/source/net/communicator.cpp +++ b/source/net/communicator.cpp @@ -58,7 +58,7 @@ Communicator::Communicator(StreamSocket &s, const Protocol &p, ReceiverBase &r): protocol(p), receiver(r), handshake_status(0), - buf_size(1024), + buf_size(65536), in_buf(new char[buf_size]), in_begin(in_buf), in_end(in_buf), -- 2.43.0