Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-622

The option "connectTimeout" must take in account DriverManager.getLoginTimeout()

    XMLWordPrintable

    Details

      Description

      The option "connectTimeout" doesn't default on DriverManager.getLoginTimeout() as defined in JDBC spec : https://docs.oracle.com/javase/9/docs/api/java/sql/DriverManager.html#getLoginTimeout--

      public static void setLoginTimeout(int seconds) : 
       
      Sets the maximum time in seconds that a driver will wait while attempting to connect to a database once the driver has been identified.
      
      

      The connector has an option "connectTimeout" that defaults to 30s when not set.
      default must take DriverManager.getLoginTimeout() value if defined, or 30s if not.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: