Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theblackturtle committed Sep 8, 2020
1 parent d6b5c88 commit 29315eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ func init() {
client = &fasthttp.Client{
NoDefaultUserAgentHeader: true,
Dial: func(addr string) (net.Conn, error) {
return fasthttp.DialDualStackTimeout(addr, time.Second*60)
return fasthttp.DialDualStackTimeout(addr, time.Minute*3) // net/http's default is 3 minutes
},
TLSConfig: &tls.Config{
InsecureSkipVerify: true,
Renegotiation: tls.RenegotiateOnceAsClient, // For "local error: tls: no renegotiation"
},
// This also limits the maximum header size.
ReadBufferSize: 28 * 1024,
WriteBufferSize: 28 * 1024,
ReadBufferSize: 48 * 1024,
WriteBufferSize: 48 * 1024,
MaxIdleConnDuration: time.Second,
}
}
Expand Down

0 comments on commit 29315eb

Please sign in to comment.