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

mysql_real_query takes time to return, if mysql server is disconnected from the network

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 2.3.3
    • N/A
    • None
    • None
    • Linux

    Description

      When executing a query using mysql_real_query(), if the machine on which the MySQL server is running is disconnected from the network, then it takes a lot of time for mysql_real_query() to return back, ~ 20 mins.

      I am attaching the sample program here. The sample program uses the persistent connection and executes the query after every 1 minute.

      Command to compile:
      g++ -o mysqlsample mysqlsample.cpp -lmariadbclient -lpthread -lssl -lcrypto -L./lib -I./mysql -ldl

      Command to run:
      ./mysqlsample

      MariaDB C client library version: 2.3.3

      Test case:
      Disable the network after the query execution and then the next query execution will take ~20mins to return.

      Attachments

        Activity

          People

            georg Georg Richter
            sandhyasriraj Sandhya Sriraj
            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.