世界 2 年之前
父节点
当前提交
262842c87d
共有 3 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      test/box_test.go
  2. 2 1
      test/config/tuic-client.json
  3. 1 0
      test/config/tuic-server.json

+ 1 - 1
test/box_test.go

@@ -86,7 +86,7 @@ func testSuitLargeUDP(t *testing.T, clientPort uint16, testPort uint16) {
 	require.NoError(t, testPingPongWithPacketConn(t, testPort, dialUDP))
 	require.NoError(t, testLargeDataWithConn(t, testPort, dialTCP))
 	require.NoError(t, testLargeDataWithPacketConn(t, testPort, dialUDP))
-	require.NoError(t, testLargeDataWithPacketConnSize(t, testPort, 1250, dialUDP))
+	require.NoError(t, testLargeDataWithPacketConnSize(t, testPort, 5000, dialUDP))
 }
 
 func testTCP(t *testing.T, clientPort uint16, testPort uint16) {

+ 2 - 1
test/config/tuic-client.json

@@ -9,7 +9,8 @@
     ]
   },
   "local": {
-    "server": "127.0.0.1:10001"
+    "server": "127.0.0.1:10001",
+    "max_packet_size": 65535
   },
   "log_level": "debug"
 }

+ 1 - 0
test/config/tuic-server.json

@@ -5,5 +5,6 @@
     },
     "certificate":  "/etc/tuic/cert.pem",
     "private_key": "/etc/tuic/key.pem",
+    "max_external_packet_size": 65535,
     "log_level": "debug"
 }