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

Support Keep alive probes in Java 11+

    XMLWordPrintable

    Details

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

      Description

      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);
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: