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 GitHub
parent 2d2e270868
commit 4a4ef9707c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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")]