Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.17.21 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 3.2.4.12, “ndb_mgm_set_timeout()”.

Signature. 

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.