Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual 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.


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.