From 4a4ef9707c0e06da215886325bafd62358fe8c28 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Mon, 8 Jul 2024 21:38:54 +0100 Subject: [PATCH] fix(SimpleWebTransport): increasing default handshake max size (#3857) Some browsers will send handshake larger than 3k, setting default limit to 16k so user dont have to worry about changing it --- Assets/Mirror/Transports/SimpleWeb/SimpleWebTransport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Transports/SimpleWeb/SimpleWebTransport.cs b/Assets/Mirror/Transports/SimpleWeb/SimpleWebTransport.cs index d54162840..b37e32289 100644 --- a/Assets/Mirror/Transports/SimpleWeb/SimpleWebTransport.cs +++ b/Assets/Mirror/Transports/SimpleWeb/SimpleWebTransport.cs @@ -18,7 +18,7 @@ public class SimpleWebTransport : Transport, PortTransport [FormerlySerializedAs("handshakeMaxSize")] [Tooltip("Max size for http header send as handshake for websockets")] - public int maxHandshakeSize = 3000; + public int maxHandshakeSize = 16 * 1024; [FormerlySerializedAs("serverMaxMessagesPerTick")] [Tooltip("Caps the number of messages the server will process per tick. Allows LateUpdate to finish to let the reset of unity continue in case more messages arrive before they are processed")]