Skip to content

Commit

Permalink
fix: 修复不释放连接的问题
Browse files Browse the repository at this point in the history
Change-Id: I90ad470a51341f887bd76dab6fdb8a12cb2584b6
  • Loading branch information
zhuzhenfeng.code committed Apr 17, 2020
1 parent 4078053 commit b971594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func Fetch(url string, op Options) (Resp, error) {
TLSHandshakeTimeout: 10 * time.Second,
ResponseHeaderTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
DisableKeepAlives: true,
},
Timeout: defaultOp.Timeout,
}
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module github.com/zzfup/go-fetch

go 1.14

0 comments on commit b971594

Please sign in to comment.