Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
9107fd88
Commit
9107fd88
authored
Aug 17, 2015
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the default timeout setting
parent
4857e384
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
httplib.go
httplib/httplib.go
+0
-6
No files found.
httplib/httplib.go
View file @
9107fd88
...
@@ -74,12 +74,6 @@ func SetDefaultSetting(setting BeegoHttpSettings) {
...
@@ -74,12 +74,6 @@ func SetDefaultSetting(setting BeegoHttpSettings) {
settingMutex
.
Lock
()
settingMutex
.
Lock
()
defer
settingMutex
.
Unlock
()
defer
settingMutex
.
Unlock
()
defaultSetting
=
setting
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
// return *BeegoHttpRequest with specific method
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment