Skip to content

Commit

Permalink
remove ipv6 fallbackdelay leave it as default
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Feb 11, 2021
1 parent e6b4ea7 commit 711adb9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions cmd/http/dial_dnscache.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ func DialContextWithDNSCache(cache *DNSCache, baseDialCtx DialContext) DialConte
baseDialCtx = (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
// If zero, Go defaults to '300ms', we will default to 100ms instead.
// https://tools.ietf.org/html/rfc6555
FallbackDelay: 100 * time.Millisecond,
}).DialContext
}
return func(ctx context.Context, network, host string) (net.Conn, error) {
Expand Down
6 changes: 0 additions & 6 deletions cmd/http/dial_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ func NewInternodeDialContext(dialTimeout time.Duration) DialContext {
return func(ctx context.Context, network, addr string) (net.Conn, error) {
dialer := &net.Dialer{
Timeout: dialTimeout,
// If zero, Go defaults to '300ms', we will default to 100ms instead.
// https://tools.ietf.org/html/rfc6555
FallbackDelay: 100 * time.Millisecond,
Control: func(network, address string, c syscall.RawConn) error {
return setInternalTCPParameters(c)
},
Expand All @@ -84,9 +81,6 @@ func NewCustomDialContext(dialTimeout time.Duration) DialContext {
return func(ctx context.Context, network, addr string) (net.Conn, error) {
dialer := &net.Dialer{
Timeout: dialTimeout,
// If zero, Go defaults to '300ms', we will default to 100ms instead.
// https://tools.ietf.org/html/rfc6555
FallbackDelay: 100 * time.Millisecond,
Control: func(network, address string, c syscall.RawConn) error {
return c.Control(func(fdPtr uintptr) {
// got socket file descriptor to set parameters.
Expand Down

0 comments on commit 711adb9

Please sign in to comment.