From 1334ce5a9af42a3f2e4779c8caaec92bccd42284 Mon Sep 17 00:00:00 2001 From: xtaci Date: Thu, 2 Mar 2017 00:08:34 +0800 Subject: [PATCH] Revert "adjust defaults" This reverts commit 6efb6008e5c518d5de8f28cf25df05207a48fd98. --- client/main.go | 8 ++++---- server/main.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/main.go b/client/main.go index 9f24f52..ac16855 100644 --- a/client/main.go +++ b/client/main.go @@ -272,13 +272,13 @@ func main() { switch config.Mode { case "normal": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 60, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 60, 2, 1 case "fast": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 50, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 50, 2, 1 case "fast2": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 40, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 40, 2, 1 case "fast3": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 30, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 30, 2, 1 } log.Println("version:", VERSION) diff --git a/server/main.go b/server/main.go index db2d620..d56c918 100644 --- a/server/main.go +++ b/server/main.go @@ -282,13 +282,13 @@ func main() { switch config.Mode { case "normal": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 60, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 60, 2, 1 case "fast": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 50, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 0, 50, 2, 1 case "fast2": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 40, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 40, 2, 1 case "fast3": - config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 30, 3, 1 + config.NoDelay, config.Interval, config.Resend, config.NoCongestion = 1, 30, 2, 1 } log.Println("version:", VERSION)