Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 4.8Mb
PDF (A4) - 4.8Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.8Mb
HTML Download (Zip) - 1.9Mb


3.2.4.12 ndb_mgm_set_timeout()

Description. Normally, network operations time out after 60 seconds. This function permits you to vary this time.

Important

The timeout set by this function applies not only to establishing network connections, but to every operation requiring communication using a network connection. This includes each network read or write performed by any MGM API function, NDB API method call, or ndb_mgm client command.

This function was introduced in MySQL 5.1.18.

Signature.

int ndb_mgm_set_timeout
    (
      NdbMgmHandle handle,
      unsigned int timeout
    )

Parameters. This function takes two parameters:

  • A management server handle (NdbMgmHandle).

  • An amount of time to wait before timing out, expressed in milliseconds.

Return value. Returns 0 on success, with any other value representing failure.


User Comments
Sign Up Login You must be logged in to post a comment.