Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-320

SSL and non-blocking API cannot be used together: they are mutually exclusive

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.2, 3.0.3
    • 3.0.4
    • None
    • None
    • Any

    Description

      SSL/TLS and non-blocking API cannot be used together.
      The reason is that functions ma_pvio_read() and ma_pvio_write() do not consider the possibility that both options are available.
      Trying to combine SSL and non-blocking API will result in connections being established (thanks to ma_tls_connect()), but unable to send any command and retrieve any result.

      Attachments

        Activity

          rcannao René Cannaò added a comment -

          In ProxySQL the bug was fixed here: https://github.com/sysown/proxysql/commit/1b2fe335c7d799dc467090d2ed73dfa17e9a9bfc
          The fix is not generic enough to be merged upstream, because it applies only to OpenSSL and not to gnutls or schannel

          rcannao René Cannaò added a comment - In ProxySQL the bug was fixed here: https://github.com/sysown/proxysql/commit/1b2fe335c7d799dc467090d2ed73dfa17e9a9bfc The fix is not generic enough to be merged upstream, because it applies only to OpenSSL and not to gnutls or schannel
          georg Georg Richter added a comment -

          Fixed in C/C 3.0.4.
          Please note that the non blocking api doesn't work with Schannel yet, it's fixed for OpenSSL and GnuTLS only.

          georg Georg Richter added a comment - Fixed in C/C 3.0.4. Please note that the non blocking api doesn't work with Schannel yet, it's fixed for OpenSSL and GnuTLS only.

          People

            georg Georg Richter
            rcannao René Cannaò
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.