summaryrefslogtreecommitdiff
path: root/common/Common.hpp
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-04-03 00:45:40 -0400
committerAshod Nakashian <ashnakash@gmail.com>2017-04-03 05:18:09 +0000
commit95d51493aa6f480948f07354f079e1b8d556108c (patch)
treecae28dba192074b74edeb33c86507eb4a477d3e9 /common/Common.hpp
parentb52a8ac6e2806e3ebdc73726040eb70a908a40cc (diff)
wsd: remove nextmessage
This was a workaround to Poco's limitation of requiring socket receiveFrame be given preallocated buffer, which couldn't be exceeded by a larger payload. This meant the receiver had to know the maximum payload in advance. Since only the Kit uses Poco sockets, and the Kit never receives large payloads, this preamble is now obsolete. 100% (94/94) of old-style tests PASS. Change-Id: I76776f89497409e5755e335a3e25553e91cf0876 Reviewed-on: https://gerrit.libreoffice.org/36037 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'common/Common.hpp')
-rw-r--r--common/Common.hpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/Common.hpp b/common/Common.hpp
index ab4e1bdd7..09bafad37 100644
--- a/common/Common.hpp
+++ b/common/Common.hpp
@@ -25,12 +25,6 @@ constexpr int WS_SEND_TIMEOUT_MS = 1000;
/// which can be 1500 bytes long.
constexpr long READ_BUFFER_SIZE = 64 * 1024;
-/// Size beyond which messages will be sent preceded with
-/// 'nextmessage' frame to let the receiver know in advance
-/// the size of the larger coming message. All messages up to,
-/// but not including, this size are considered small messages.
-constexpr int LARGE_MESSAGE_SIZE = READ_BUFFER_SIZE - 512;
-
/// Message larger than this will be dropped as invalid
/// or as intentionally flooding the server.
constexpr int MAX_MESSAGE_SIZE = 2 * 1024 * READ_BUFFER_SIZE;