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

Connection#isValid(int timeout) does not obey the passed in timeout if the network is down.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 3.5.6
    • JDBC compatibility
    • None
    • Windows

    Description

      Connection#isValid(int timeout) does not obey the passed in timeout if the network is down. Instead of obeying the timeout value, the call will hang until the socket timeout is hit. I've created a small example that you can use to reproduce the problem:

      https://github.com/aaron-congo/mariadb-isvalid-bug

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            acongo Aaron Congo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.