]> git.tdb.fi Git - libs/net.git/commitdiff
Increase Communicator buffer size to 64k
authorMikko Rasa <tdb@tdb.fi>
Wed, 12 Oct 2016 09:59:00 +0000 (12:59 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 12 Oct 2016 09:59:00 +0000 (12:59 +0300)
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

index 051e45a14bbb4f33d262429df400fe4f6b6b60dd..3d6353a2158fb2d62fbe6df164085a1b2ea7a417 100644 (file)
@@ -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),