mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
fix: KCPLarge buffer size too small
This commit is contained in:
parent
60603abee7
commit
2a78af34fd
@ -810,10 +810,10 @@ func TestVMessKCPLarge(t *testing.T) {
|
|||||||
Protocol: internet.TransportProtocol_MKCP,
|
Protocol: internet.TransportProtocol_MKCP,
|
||||||
Settings: serial.ToTypedMessage(&kcp.Config{
|
Settings: serial.ToTypedMessage(&kcp.Config{
|
||||||
ReadBuffer: &kcp.ReadBuffer{
|
ReadBuffer: &kcp.ReadBuffer{
|
||||||
Size: 4096,
|
Size: 512 * 1024,
|
||||||
},
|
},
|
||||||
WriteBuffer: &kcp.WriteBuffer{
|
WriteBuffer: &kcp.WriteBuffer{
|
||||||
Size: 4096,
|
Size: 512 * 1024,
|
||||||
},
|
},
|
||||||
UplinkCapacity: &kcp.UplinkCapacity{
|
UplinkCapacity: &kcp.UplinkCapacity{
|
||||||
Value: 20,
|
Value: 20,
|
||||||
@ -897,10 +897,10 @@ func TestVMessKCPLarge(t *testing.T) {
|
|||||||
Protocol: internet.TransportProtocol_MKCP,
|
Protocol: internet.TransportProtocol_MKCP,
|
||||||
Settings: serial.ToTypedMessage(&kcp.Config{
|
Settings: serial.ToTypedMessage(&kcp.Config{
|
||||||
ReadBuffer: &kcp.ReadBuffer{
|
ReadBuffer: &kcp.ReadBuffer{
|
||||||
Size: 4096,
|
Size: 512 * 1024,
|
||||||
},
|
},
|
||||||
WriteBuffer: &kcp.WriteBuffer{
|
WriteBuffer: &kcp.WriteBuffer{
|
||||||
Size: 4096,
|
Size: 512 * 1024,
|
||||||
},
|
},
|
||||||
UplinkCapacity: &kcp.UplinkCapacity{
|
UplinkCapacity: &kcp.UplinkCapacity{
|
||||||
Value: 20,
|
Value: 20,
|
||||||
|
Loading…
Reference in New Issue
Block a user