diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-08-07 14:40:27 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-08-07 14:41:37 +0300 |
commit | c1ebc62c3a8e5d088e5d3910bacc60690a0454b6 (patch) | |
tree | e7232ece034d140f3e68f6c27db3d5b655d1989f /wsd/ClientSession.cpp | |
parent | 59c9f70c1f4cdfd7b4c9113a05d78ade8e513d70 (diff) |
Fix build for MOBILEAPP
The iOS app does not work any longer, though. Hits an assertion failure.
Change-Id: Ia135c12a79427e5c2b6c3c98adef4c354d1ceb68
Diffstat (limited to 'wsd/ClientSession.cpp')
-rw-r--r-- | wsd/ClientSession.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp index 4cdc3fea2..c24f04f57 100644 --- a/wsd/ClientSession.cpp +++ b/wsd/ClientSession.cpp @@ -1252,8 +1252,10 @@ bool ClientSession::handleKitToClientMessage(const char* buffer, const int lengt if (!empty) { oss.write(&payload->data()[header], payload->size() - header); +#if !MOBILEAPP socket->setSocketBufferSize(std::min(payload->size() + 256, size_t(Socket::MaximumSendBufferSize))); +#endif } socket->send(oss.str()); socket->shutdown(); |