Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Ndb_cluster_connection::set_timeout()

Description.  Used to set a timeout for the connection, to limit the amount of time that we may block when connecting.

This method is actually a wrapper for the function ndb_mgm_set_timeout(). For more information, see Section, “ndb_mgm_set_timeout()”.


int set_timeout
      int timeout_ms

Parameters.  The length of the timeout, in milliseconds (timeout_ms). Currently, only multiples of 1000 are accepted.

Return value.  0 on success; any other value indicates failure.