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
This commit is contained in:
James Frowen 2024-07-08 21:38:54 +01:00 committed by MrGadget
parent 2241aa5f92
commit f73d4b87df

View File

@ -18,7 +18,7 @@ public class SimpleWebTransport : Transport, PortTransport
[FormerlySerializedAs("handshakeMaxSize")] [FormerlySerializedAs("handshakeMaxSize")]
[Tooltip("Max size for http header send as handshake for websockets")] [Tooltip("Max size for http header send as handshake for websockets")]
public int maxHandshakeSize = 3000; public int maxHandshakeSize = 16 * 1024;
[FormerlySerializedAs("serverMaxMessagesPerTick")] [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")] [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")]