#include <db.h> int DB_CHANNEL->set_timeout(DB_CHANNEL *channel, db_timeout_t timeout);
The DB_CHANNEL->set_timeout()
method
sets the default timeout value for the DB_CHANNEL handle.
This timeout is used by the
DB_CHANNEL->send_request()
method.
The DB_CHANNEL->set_timeout()
method returns a non-zero error value on failure and 0 on success.
Configures the amount of time that may elapse while the DB_CHANNEL->send_request() method waits for a message response. The timeout value must be specified as an unsigned 32-bit number of microseconds, limiting the maximum timeout to roughly 71 minutes.
The DB_CHANNEL->set_timeout()
method may fail and return one of the following non-zero errors: