Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 5.3Mb
PDF (A4) - 5.3Mb
EPUB - 2.3Mb
HTML Download (TGZ) - 2.2Mb
HTML Download (Zip) - 2.3Mb ndb_mgm_set_timeout()

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


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.


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.