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

connectTimeout milli/second mix up

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.9, 2.0.2
    • Fix Version/s: 1.6.1, 2.0.2
    • Component/s: Other
    • Labels:
      None

      Description

      The implementation for setLoginTimeout(int seconds) in the MariaDbDatasource sets the connectTimeout option in seconds
      The connectTimeout option is then used in the AbstractConnectionProtocol when calling socket.connect(sockAddr, options.connectTimeout). However this is expecting a millisecond value.
      This is causing connection timeouts to be much lower than expected.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: