summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2013-04-24 19:38:39 +0300
committerVaadin Code Review <review@vaadin.com>2013-04-29 15:56:47 +0000
commita430180f6fee1073ac7952e5f0c6bd7a01ed6606 (patch)
tree66a8623cadeb4869f703850deaf50c8a021289da /shared
parent1f08e16589924841341c2145df6a1a135afb63d6 (diff)
downloadvaadin-framework-a430180f6fee1073ac7952e5f0c6bd7a01ed6606.tar.gz
vaadin-framework-a430180f6fee1073ac7952e5f0c6bd7a01ed6606.zip
Split client-to-server messages when websockets are used (#11648)
* First part of a fragmented message prefixed by total message length plus '|' * Atmosphere websocket buffer size set to 65536 * Fragment size is 65535 characters (Jetty requires less than buffer size) Change-Id: I8bf872bbb03b86386070fdc99c14ea805dd2ef3a
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ApplicationConstants.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ApplicationConstants.java b/shared/src/com/vaadin/shared/ApplicationConstants.java
index 04cba79c0c..fc4abd1988 100644
--- a/shared/src/com/vaadin/shared/ApplicationConstants.java
+++ b/shared/src/com/vaadin/shared/ApplicationConstants.java
@@ -83,4 +83,8 @@ public class ApplicationConstants implements Serializable {
* Name of the parameter used to transmit the CSRF token.
*/
public static final String CSRF_TOKEN_PARAMETER = "v-csrfToken";
+
+ public static final int WEBSOCKET_BUFFER_SIZE = 65536;
+
+ public static final char WEBSOCKET_MESSAGE_DELIMITER = '|';
}