From 9107fd8898fd98d94a342cc1b251237619f48794 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 17 Aug 2015 22:33:28 +0800 Subject: [PATCH] remove the default timeout setting --- httplib/httplib.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/httplib/httplib.go b/httplib/httplib.go index 68c22d70..a160bce0 100644 --- a/httplib/httplib.go +++ b/httplib/httplib.go @@ -74,12 +74,6 @@ func SetDefaultSetting(setting BeegoHttpSettings) { settingMutex.Lock() defer settingMutex.Unlock() defaultSetting = setting - if defaultSetting.ConnectTimeout == 0 { - defaultSetting.ConnectTimeout = 60 * time.Second - } - if defaultSetting.ReadWriteTimeout == 0 { - defaultSetting.ReadWriteTimeout = 60 * time.Second - } } // return *BeegoHttpRequest with specific method