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

MongURI should allow configuring of the socketKeepAlive setting in the driver

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.3
    • None
    • Environment:
      java driver
    • Fully Compatible

      MongoOptions.java supports the enabling of socket keep alive, yet the option is not accessible through MongoURI.java. Is there a specific reason for this? or can the option be enabled by adding the following code to MongoURI.java in the parseOptions method?

      (after line 171 in v2.6.3 of MongoURI.java)
      else if ( key.equals( "socketKeepAlive" ) ) _options.autoConnectRetry = _parseBoolean( value );

            Assignee:
            Unassigned Unassigned
            Reporter:
            pdwalker Paul D. Walker
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: