Skip to content

Commit

Permalink
Use 5s timeout dialer
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Mar 8, 2024
1 parent a693a6c commit eb7ad06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

var client = &fasthttp.Client{
Dial: fasthttpproxy.FasthttpProxyHTTPDialer(),
Dial: fasthttpproxy.FasthttpProxyHTTPDialerTimeout(5 * time.Second),
ReadBufferSize: 16 * 1024,
MaxConnsPerHost: 1024,
MaxConnWaitTimeout: 5 * time.Second,
Expand Down

0 comments on commit eb7ad06

Please sign in to comment.