Skip to content

Commit

Permalink
CDRIVER-631 reduce max retries from 3 to 1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ajdavis committed May 18, 2015
1 parent 5f40338 commit 0e5a5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongoc/mongoc-cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#endif

#ifndef MAX_RETRY_COUNT
#define MAX_RETRY_COUNT 3
#define MAX_RETRY_COUNT 1
#endif


Expand Down

0 comments on commit 0e5a5a6

Please sign in to comment.