Set the busy timeout delay for a database connection
#include <qdb/qdb.h> int qdb_setbusytimeout( qdb_hdt_t *hdl, int timeout );
This function sets the busy timeout delay for the database connection specified by hdl. The initial value is specified on the qdb commandline with the -t option, with a default of 5000 ms. Specifying a value of 0 is the same as QDB_TIMEOUT_NONBLOCK.
The timeout is the amount of time that a client will attempt to access a database before it returns EBUSY. If two clients attempt to write to the database, for example, the database is locked while the first client is writing, and the second client's attempt will fail if the busy timeout period expires.
|The QDB_CONN_NONBLOCKING flag bit is affected by the timeout value. If you set or toggle QDB_CONN_NONBLOCKING, the busy timeout value itself is set to 0 or back to the -t default. Similarly, if you set the timeout to be QDB_TIMEOUT_NONBLOCK, the QDB_CONN_NONBLOCKING bit is set.|
qdb_connect(), qdb_parameters(), qdb_statement()