Skip to content

Commit

Permalink
fix: KCPLarge buffer size too small
Browse files Browse the repository at this point in the history
  • Loading branch information
vcptr committed Nov 27, 2019
1 parent 60603ab commit 2a78af3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/scenarios/vmess_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,10 @@ func TestVMessKCPLarge(t *testing.T) {
Protocol: internet.TransportProtocol_MKCP,
Settings: serial.ToTypedMessage(&kcp.Config{
ReadBuffer: &kcp.ReadBuffer{
Size: 4096,
Size: 512 * 1024,
},
WriteBuffer: &kcp.WriteBuffer{
Size: 4096,
Size: 512 * 1024,
},
UplinkCapacity: &kcp.UplinkCapacity{
Value: 20,
Expand Down Expand Up @@ -897,10 +897,10 @@ func TestVMessKCPLarge(t *testing.T) {
Protocol: internet.TransportProtocol_MKCP,
Settings: serial.ToTypedMessage(&kcp.Config{
ReadBuffer: &kcp.ReadBuffer{
Size: 4096,
Size: 512 * 1024,
},
WriteBuffer: &kcp.WriteBuffer{
Size: 4096,
Size: 512 * 1024,
},
UplinkCapacity: &kcp.UplinkCapacity{
Value: 20,
Expand Down

0 comments on commit 2a78af3

Please sign in to comment.