Skip to content

Commit

Permalink
dial: increase dial t/o to 30s
Browse files Browse the repository at this point in the history
To prevent extended number of t/o errors increase dial t/o by default to 30s.
  • Loading branch information
mmatczuk committed Mar 5, 2024
1 parent 6003354 commit d04aead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type DialConfig struct {

func DefaultDialConfig() *DialConfig {
return &DialConfig{
DialTimeout: 10 * time.Second,
DialTimeout: 30 * time.Second,
KeepAlive: true,
}
}
Expand Down

0 comments on commit d04aead

Please sign in to comment.