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

Support Keep alive probes in Java 11+

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.0
    • Affects Version/s: None
    • Component/s: Connection Management
    • Labels:
      None

      Investigate the possibility of adding ExtendedSocketOptions for users of java 11+

      Similar to how the C driver handles additional connection options.

      import java.net.Socket;
      import jdk.net.ExtendedSocketOptions;
      
      Socket socket = new Socket();
      socket.setOption(ExtendedSocketOptions.TCP_KEEPIDLE, 300);
      socket.setOption(ExtendedSocketOptions.TCP_KEEPCOUNT, 9);
      socket.setOption(ExtendedSocketOptions.TCP_KEEPINTERVAL, 10);
      

            Assignee:
            john.stewart@mongodb.com John Stewart (Inactive)
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: