Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-30432

Refactor connect to use libcurl instead of cpprestsdk/curl

    XMLWordPrintable

Details

    Description

      Current status and problem description
      Starting from 10.2.37 Connect SE uses curl, introduced by Olivier Bertrand, commit 8c617e99015c.
      Connect SE is also able to run using cpprestsdk.

      Neither these options are preferable because:

      • cpprestsdk that has to be built by the user as a separate library.
      • curl shouldn't have to be exec'ed. There is a dedicated libcurl library that we can link to.

      We should make use of libcurl, just like the S3 Storage Engine does, via libmarias3.

      Task:

      • Remove cpprest, curl exec calls and optimize code to use libcurl only.
      • Remove the use of exec(curl) binary and use the library call directly.
      • Mark new package dependency of libcurl in RPM/DEB files.
      • Identify how Windows binaries are impacted
      • Ensure connect.rest test case passes.

      After task is implemented, update documentation pages:
      [1] https://mariadb.com/kb/en/connect-files-retrieved-using-rest-queries/
      [2] https://mariadb.com/kb/en/connect-making-the-getrest-library/ [deprecate]

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              anel Anel Husakovic
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.