3bd6caae by JessonChan Committed by astaxie

set default timeout

1 parent d8734cf5
...@@ -358,10 +358,10 @@ func (b *BeegoHttpRequest) getResponse() (*http.Response, error) { ...@@ -358,10 +358,10 @@ func (b *BeegoHttpRequest) getResponse() (*http.Response, error) {
358 trans := b.setting.Transport 358 trans := b.setting.Transport
359 359
360 if b.setting.ConnectTimeout == 0 { 360 if b.setting.ConnectTimeout == 0 {
361 b.setting.ConnectTimeout = 30 * time.Second 361 b.setting.ConnectTimeout = 60 * time.Second
362 } 362 }
363 if b.setting.ReadWriteTimeout == 0 { 363 if b.setting.ReadWriteTimeout == 0 {
364 b.setting.ReadWriteTimeout = 30 * time.Second 364 b.setting.ReadWriteTimeout = 60 * time.Second
365 } 365 }
366 366
367 if trans == nil { 367 if trans == nil {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!