From 843f34d6fab7a2368976751c88080e9e99408dcf Mon Sep 17 00:00:00 2001 From: vzex Date: Thu, 6 Dec 2018 00:17:54 +0800 Subject: [PATCH] buffersize should below mtu --- common/common.go | 2 +- pipe/pipe.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.go b/common/common.go index 351932d..b11cc3d 100644 --- a/common/common.go +++ b/common/common.go @@ -22,7 +22,7 @@ func init() { initxor() } -const Version = 1.34 +const Version = 1.35 type ClientSetting struct { AccessKey string diff --git a/pipe/pipe.go b/pipe/pipe.go index c0f3735..3276772 100644 --- a/pipe/pipe.go +++ b/pipe/pipe.go @@ -14,7 +14,7 @@ import ( import "github.com/klauspost/reedsolomon" import "github.com/vzex/zappy" -const WriteBufferSize = 5000 //udp writer will add some data for checksum or encrypt +const WriteBufferSize = 1000 //udp writer will add some data for checksum or encrypt const ReadBufferSize = WriteBufferSize * 2 //so reader must be larger const dataLimit = WriteBufferSize