Skip to content

Commit

Permalink
change default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Aug 19, 2016
1 parent 75923fb commit 1f0a4a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func main() {
cli.StringFlag{
Name: "mode",
Value: "fast",
Usage: "embeded modes: fast3, fast2, fast, normal",
Usage: "profiles: fast3, fast2, fast, normal",
},
cli.IntFlag{
Name: "conn",
Expand All @@ -142,13 +142,9 @@ func main() {
Value: 1024,
Usage: "set receive window size(num of packets)",
},
cli.BoolFlag{
Name: "nocomp",
Usage: "disable compression",
},
cli.IntFlag{
Name: "datashard",
Value: 10,
Value: 7,
Usage: "set reed-solomon erasure coding - datashard",
},
cli.IntFlag{
Expand All @@ -166,6 +162,10 @@ func main() {
Value: 0,
Usage: "set DSCP(6bit)",
},
cli.BoolFlag{
Name: "nocomp",
Usage: "disable compression",
},
cli.IntFlag{
Name: "nodelay",
Value: 0,
Expand Down Expand Up @@ -266,7 +266,7 @@ func main() {
AcceptBacklog: 256,
EnableKeepAlive: true,
KeepAliveInterval: 30 * time.Second,
ConnectionWriteTimeout: 30 * time.Second,
ConnectionWriteTimeout: 10 * time.Second,
MaxStreamWindowSize: uint32(sockbuf),
LogOutput: os.Stderr,
}
Expand Down
14 changes: 7 additions & 7 deletions server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func main() {
cli.StringFlag{
Name: "mode",
Value: "fast",
Usage: "embeded modes: fast3, fast2, fast, normal",
Usage: "profiles: fast3, fast2, fast, normal",
},
cli.IntFlag{
Name: "mtu",
Expand All @@ -155,13 +155,9 @@ func main() {
Value: 1024,
Usage: "set receive window size(num of packets)",
},
cli.BoolFlag{
Name: "nocomp",
Usage: "disable compression",
},
cli.IntFlag{
Name: "datashard",
Value: 10,
Value: 7,
Usage: "set reed-solomon erasure coding - datashard",
},
cli.IntFlag{
Expand All @@ -179,6 +175,10 @@ func main() {
Value: 0,
Usage: "set DSCP(6bit)",
},
cli.BoolFlag{
Name: "nocomp",
Usage: "disable compression",
},
cli.IntFlag{
Name: "nodelay",
Value: 0,
Expand Down Expand Up @@ -284,7 +284,7 @@ func main() {
AcceptBacklog: 256,
EnableKeepAlive: true,
KeepAliveInterval: 30 * time.Second,
ConnectionWriteTimeout: 30 * time.Second,
ConnectionWriteTimeout: 10 * time.Second,
MaxStreamWindowSize: uint32(sockbuf),
LogOutput: os.Stderr,
}
Expand Down

0 comments on commit 1f0a4a2

Please sign in to comment.