diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-18 20:22:28 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-18 20:23:10 +0200 |
commit | bc1b70dcde4cf22ef52fe794125c533afcee2655 (patch) | |
tree | 316de008808cc998d995138fae944f4266e856fc /src/Protocol/ProtocolRecognizer.cpp | |
parent | Delete duplicated status request handlers (diff) | |
download | cuberite-bc1b70dcde4cf22ef52fe794125c533afcee2655.tar cuberite-bc1b70dcde4cf22ef52fe794125c533afcee2655.tar.gz cuberite-bc1b70dcde4cf22ef52fe794125c533afcee2655.tar.bz2 cuberite-bc1b70dcde4cf22ef52fe794125c533afcee2655.tar.lz cuberite-bc1b70dcde4cf22ef52fe794125c533afcee2655.tar.xz cuberite-bc1b70dcde4cf22ef52fe794125c533afcee2655.tar.zst cuberite-bc1b70dcde4cf22ef52fe794125c533afcee2655.zip |
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.cpp')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp index 6dc1c8bd8..46c2d239f 100644 --- a/src/Protocol/ProtocolRecognizer.cpp +++ b/src/Protocol/ProtocolRecognizer.cpp @@ -50,7 +50,7 @@ struct sTriedToJoinWithUnsupportedProtocolException : public std::runtime_error cMultiVersionProtocol::cMultiVersionProtocol() : HandleIncomingData(std::bind(&cMultiVersionProtocol::HandleIncomingDataInRecognitionStage, this, std::placeholders::_1, std::placeholders::_2)), - m_Buffer(8 KiB) // We need a larger buffer to support BungeeCord - it sends one huge packet at the start + m_Buffer(32 KiB) { } @@ -107,7 +107,7 @@ void cMultiVersionProtocol::HandleIncomingDataInRecognitionStage(cClientHandle & HandleIncomingData = [this](cClientHandle &, const std::string_view a_In) { // TODO: make it take our a_ReceivedData - m_Protocol->DataReceived(a_In.data(), a_In.size()); + m_Protocol->DataReceived(m_Buffer, a_In.data(), a_In.size()); }; } catch (const sUnsupportedButPingableProtocolException &) |