From: Mikko Rasa Date: Wed, 12 Oct 2016 09:59:00 +0000 (+0300) Subject: Increase Communicator buffer size to 64k X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=commitdiff_plain;h=2dfa05663dd67d4d7c68f96df0b1ab733b2063c2;hp=5f312d842b55f53ac78ae2c658cab064debe74e6 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. --- 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),