X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fnet%2Fcommunicator.cpp;h=3d6353a2158fb2d62fbe6df164085a1b2ea7a417;hp=07c3be4f6b1d7c25623a957217a98f5bccea21a6;hb=2dfa05663dd67d4d7c68f96df0b1ab733b2063c2;hpb=df1b7561be0d4a57e964c783c01060c54864ec60 diff --git a/source/net/communicator.cpp b/source/net/communicator.cpp index 07c3be4..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), @@ -116,9 +116,7 @@ void Communicator::data_available() while(more) { if(handshake_status==2) - { more = receive_packet(protocol, receiver); - } else { HandshakeProtocol hsproto;