summaryrefslogtreecommitdiff
path: root/Source/cmConnection.cxx
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2017-07-19 20:23:34 -0600
committerBrad King <brad.king@kitware.com>2017-08-31 15:35:04 -0400
commit7ef28843618519c222806a0df82ed8f87ad2ca0c (patch)
tree723cabf43743d04b7ed34edac2cef223eaba2ac0 /Source/cmConnection.cxx
parentdc7a18d82eb0013a2afbdea9ba5fec131fc3179f (diff)
downloadcmake-7ef28843618519c222806a0df82ed8f87ad2ca0c.tar.gz
server: Moved buffer formatting into bufferstrategy
Diffstat (limited to 'Source/cmConnection.cxx')
-rw-r--r--Source/cmConnection.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmConnection.cxx b/Source/cmConnection.cxx
index 6cf8e5b0d2..89013dc971 100644
--- a/Source/cmConnection.cxx
+++ b/Source/cmConnection.cxx
@@ -67,9 +67,13 @@ bool cmEventBasedConnection::IsOpen() const
return this->WriteStream != nullptr;
}
-void cmEventBasedConnection::WriteData(const std::string& data)
+void cmEventBasedConnection::WriteData(const std::string& _data)
{
+ auto data = _data;
assert(this->WriteStream);
+ if (BufferStrategy) {
+ data = BufferStrategy->BufferOutMessage(data);
+ }
auto ds = data.size();