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

Configure max connection retry time

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.6.4
    • 2.6.3
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: