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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 2.3.3
    • Fix Version/s: N/A
    • Labels:
      None
    • Environment:
      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

            Assignee:
            georg Georg Richter
            Reporter:
            sandhyasriraj Sandhya Sriraj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: