These release notes were created with the assistance of MySQL HeatWave GenAI.
-
The X DevAPI and X DevAPI for C now support configurable read and write timeouts. These timeouts can be set in milliseconds with the following methods:
For both APIs, with the connection options
read-timeout
andwrite-timeout
in the connection string.For the X DevAPI, with the
SessionOption
enumeration constantsREAD_TIMEOUT
andWRITE_TIMEOUT
in themysqlx::Session
ormysqlx::SessionSettings
constructor.For the X DevAPI for C, with the
MYSQLX_OPT_READ_TIMEOUT
andMYSQLX_OPT_WRITE_TIMEOUT
enumeration constants or theOPT_READ_TIMEOUT()
andOPT_WRITE_TIMEOUT()
macros, using themysqlx_session_option_set()
function.
The timeouts can only be set at the time of connection. See the MySQL Connector/C++ X DevAPI Reference for details. (WL #16924)