Commit 0e5a5a6
committed
CDRIVER-631 reduce max retries from 3 to 1
It can take a surprising amount of time before we report primary not available
when connecting to a replica set with two downed members. With
socketTimeoutMS = connectionTimeoutMS = 1 second, it can take up to 16 seconds
to return an error from an operation.
Reducing retries to 1 speeds this scenario to bail after 8 seconds, not 16.1 parent 5f40338 commit 0e5a5a6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments