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

Heartbeat socket settings for MongoClientSettings should have non-infinite read timeout

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.0
    • None
    • Cluster Management
    • None

    Description

      The legacy MongoClient defaults the heartbeat socket settings to a 20 sec connect timeout and a 20 second read timeout.

      MongoClientSettings should similarly ensure that the default timeouts are not infinite.

      Given the SDAM spec it's possible that MongoClientSettings shouldn't even expose heartbeat socket settings, instead just using the normal socket settings connect timeout. Have to consider backwards compatibility with the existing async MongoClientSettings, and weight that against what API we want to offer going forward.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: