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

Socket connections need to try all possible IP addresses for host

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • 3.6
    • None
    • None
    • All

    Description

      Fixed an issue in ConnectionHelper where Socket connections sometimes failed. Socket connections now try all possible IP addresses, not just the first one.

      When a host has multiple IP resolution results, especially when the results include both IPv4 and IPv6 addresses, this change can help connect to the correct IP.

      For example, if the server is listening on ::1 and the client uses localhost to connect, by default, it will only attempt to connect to 127.0.0.1

      I create a PR(https://github.com/mariadb-corporation/mariadb-connector-j/pull/196) to fix issue

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            dreamlike MengYangLi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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