This commit is contained in:
世界 2023-08-22 11:22:13 +08:00
parent 376f527742
commit 262842c87d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 4 additions and 2 deletions

View file

@ -86,7 +86,7 @@ func testSuitLargeUDP(t *testing.T, clientPort uint16, testPort uint16) {
require.NoError(t, testPingPongWithPacketConn(t, testPort, dialUDP)) require.NoError(t, testPingPongWithPacketConn(t, testPort, dialUDP))
require.NoError(t, testLargeDataWithConn(t, testPort, dialTCP)) require.NoError(t, testLargeDataWithConn(t, testPort, dialTCP))
require.NoError(t, testLargeDataWithPacketConn(t, testPort, dialUDP)) 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) { func testTCP(t *testing.T, clientPort uint16, testPort uint16) {

View file

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

View file

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