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

GnuTLS TLSv1.3 connection fails with error

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.1.3
    • None
    • None

    Description

      When connecting to MariaDB Server running with OpenSSL 1.1.1 TLSv1.3 connection will fail with error

      Lost connection to MySQL server at 'reading authorization packet', system error: 11
      

      The TLS handshake itself succeeds but further reads will fail:

      Solution: check the return code of gnutls_record_recv/send and repeat if return code was GNUTLS_E_AGAIN or GNUTLS_E_INTERRUPT.

      Attachments

        Activity

          georg Georg Richter added a comment -

          commit c6b344d730885051fdaf347f0d33c54ec22c415c (origin/3.0, 3.0)
          Author: Georg Richter <georg@mariadb.com>
          Date: Wed Jun 26 09:13:00 2019 +0200

          Fix for CONC-423: GnuTLS fails with "error reading authentication packet" with a TLSv1.3 connection

          We now check the return code of gnutls_record_send() and gnutls_record_recv().
          If GNUTLS_E_AGAIN or GNUTLS_E_INTERRUPTED was returned we will loop and read/write
          again until a timeout occurs or buffer was read or written.

          georg Georg Richter added a comment - commit c6b344d730885051fdaf347f0d33c54ec22c415c (origin/3.0, 3.0) Author: Georg Richter <georg@mariadb.com> Date: Wed Jun 26 09:13:00 2019 +0200 Fix for CONC-423 : GnuTLS fails with "error reading authentication packet" with a TLSv1.3 connection We now check the return code of gnutls_record_send() and gnutls_record_recv(). If GNUTLS_E_AGAIN or GNUTLS_E_INTERRUPTED was returned we will loop and read/write again until a timeout occurs or buffer was read or written.

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.