Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
buffersize should below mtu
Browse files Browse the repository at this point in the history
  • Loading branch information
vzex committed Dec 5, 2018
1 parent 7990c67 commit 843f34d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func init() {
initxor()
}

const Version = 1.34
const Version = 1.35

type ClientSetting struct {
AccessKey string
Expand Down
2 changes: 1 addition & 1 deletion pipe/pipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 843f34d

Please sign in to comment.