Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-398

Configure max connection retry time

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.4
    • Affects Version/s: 2.6.3
    • Component/s: None
    • None

      If the Mongo server is down, the socket timeout is not applicable (it realizes it's down close to instantly). But DBPort has a constant called CONN_RETRY_TIME_MS that means DBPort will repeatedly try to connect to the unavailable server until a certain time has elapsed.

      That maximum connection retry time should be configurable. The code to make it configurable is here:

      https://github.com/mongodb/mongo-java-driver/pull/37

            Assignee:
            antoine Antoine Girbal
            Reporter:
            sirsean Sean Schulte
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: