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:

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