File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
kcp2k/Assets/Tests/Editor Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,16 @@ public class ClientServerTests
3535 protected KcpServer server ;
3636 protected List < Message > serverReceived ;
3737 // server windows can be configured separately to test differently sized windows
38- protected const int serverSendWindowSize = 128 ;
39- protected const int serverReceiveWindowSize = 128 ;
38+ // use 2x defaults so we can test larger max message than defaults too.
39+ protected const int serverSendWindowSize = Kcp . WND_SND * 2 ;
40+ protected const int serverReceiveWindowSize = Kcp . WND_RCV * 2 ;
4041
4142 protected KcpClient client ;
4243 protected List < Message > clientReceived ;
4344 // client windows can be configured separately to test differently sized windows
44- protected const int clientSendWindowSize = 128 ;
45- protected const int clientReceiveWindowSize = 128 ;
45+ // use 2x defaults so we can test larger max message than defaults too.
46+ protected const int clientSendWindowSize = Kcp . WND_SND * 2 ;
47+ protected const int clientReceiveWindowSize = Kcp . WND_RCV * 2 ;
4648
4749 // setup ///////////////////////////////////////////////////////////////
4850 protected void ClientOnData ( ArraySegment < byte > message , KcpChannel channel )
You can’t perform that action at this time.
0 commit comments