@@ -74,21 +74,11 @@ const (
74
74
// Strong mode is specific to mgo, and is same as Primary.
75
75
Strong Mode = 2
76
76
77
- // DefaultConnectionPoolSize defines the default maximum number of
77
+ // DefaultConnectionPoolLimit defines the default maximum number of
78
78
// connections in the connection pool.
79
79
//
80
80
// To override this value set DialInfo.PoolLimit.
81
- DefaultConnectionPoolSize = 4096
82
-
83
- // DefaultReadTimeout is set to 60 seconds for backwards compatibility.
84
- //
85
- // See DialInfo.ReadTimeout
86
- DefaultReadTimeout = time .Second * 60
87
-
88
- // DefaultWriteTimeout is set to 60 seconds for backwards compatibility.
89
- //
90
- // See DialInfo.WriteTimeout
91
- DefaultWriteTimeout = time .Second * 60
81
+ DefaultConnectionPoolLimit = 4096
92
82
93
83
zeroDuration = time .Duration (0 )
94
84
)
@@ -501,16 +491,16 @@ type DialInfo struct {
501
491
Password string
502
492
503
493
// PoolLimit defines the per-server socket pool limit. Defaults to
504
- // DefaultConnectionPoolSize . See Session.SetPoolLimit for details.
494
+ // DefaultConnectionPoolLimit . See Session.SetPoolLimit for details.
505
495
PoolLimit int
506
496
507
497
// PoolTimeout defines max time to wait for a connection to become available
508
498
// if the pool limit is reached. Defaults to zero, which means forever. See
509
499
// Session.SetPoolTimeout for details
510
500
PoolTimeout time.Duration
511
501
512
- // ReadTimeout defines the maximum duration to wait for a response from
513
- // MongoDB.
502
+ // ReadTimeout defines the maximum duration to wait for a response to be
503
+ // read from MongoDB.
514
504
//
515
505
// This effectively limits the maximum query execution time. If a MongoDB
516
506
// query duration exceeds this timeout, the caller will receive a timeout,
0 commit comments