We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce6057 commit eb2c1c4Copy full SHA for eb2c1c4
mongo/options/clientoptions.go
@@ -427,7 +427,8 @@ func (c *ClientOptions) SetConnectTimeout(d time.Duration) *ClientOptions {
427
}
428
429
// SetDialer specifies a custom ContextDialer to be used to create new connections to the server. The default is a
430
-// net.Dialer instance with a 300 second keepalive time.
+// net.Dialer with the Timeout field set to ConnectTimeout. See https://golang.org/pkg/net/#Dialer for more information
431
+// about the net.Dialer type.
432
func (c *ClientOptions) SetDialer(d ContextDialer) *ClientOptions {
433
c.Dialer = d
434
return c
0 commit comments