Skip to content

Commit

Permalink
shrink per-direction buffer to 4k
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Nov 12, 2019
1 parent 99abd12 commit 24ff7ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
}
xmitBuf.New = func() interface{} {
return make([]byte, 32768)
return make([]byte, 4096)
}

myApp := cli.NewApp()
Expand Down
2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
}
xmitBuf.New = func() interface{} {
return make([]byte, 32768)
return make([]byte, 4096)
}

myApp := cli.NewApp()
Expand Down

0 comments on commit 24ff7ca

Please sign in to comment.