]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/communicator.cpp
Increase Communicator buffer size to 64k
[libs/net.git] / source / net / communicator.cpp
index 07c3be4f6b1d7c25623a957217a98f5bccea21a6..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),
@@ -116,9 +116,7 @@ void Communicator::data_available()
                while(more)
                {
                        if(handshake_status==2)
-                       {
                                more = receive_packet(protocol, receiver);
-                       }
                        else
                        {
                                HandshakeProtocol hsproto;