diff options
author | Brad King <brad.king@kitware.com> | 2017-11-20 14:30:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-20 14:30:04 (GMT) |
commit | a347de186c4298369f288206432c1e30ba06cbd1 (patch) | |
tree | 7011ea6f69baab435939317273b1ccadff21cf64 | |
parent | 47c2baf06a7c1435f3094c07aa90cc374e2a19c3 (diff) | |
parent | 01c42155cca188901214abbbf79317f853fe164d (diff) | |
download | CMake-a347de186c4298369f288206432c1e30ba06cbd1.zip CMake-a347de186c4298369f288206432c1e30ba06cbd1.tar.gz CMake-a347de186c4298369f288206432c1e30ba06cbd1.tar.bz2 |
Merge branch 'fix-cmake-server-bad-buffering' into release-3.10
Merge-request: !1498
-rw-r--r-- | Source/cmConnection.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmConnection.cxx b/Source/cmConnection.cxx index f482412..28ba12c 100644 --- a/Source/cmConnection.cxx +++ b/Source/cmConnection.cxx @@ -97,11 +97,10 @@ void cmEventBasedConnection::ReadData(const std::string& data) this->RawReadBuffer += data; if (BufferStrategy) { std::string packet = BufferStrategy->BufferMessage(this->RawReadBuffer); - do { + while (!packet.empty()) { ProcessRequest(packet); packet = BufferStrategy->BufferMessage(this->RawReadBuffer); - } while (!packet.empty()); - + } } else { ProcessRequest(this->RawReadBuffer); this->RawReadBuffer.clear(); |