MYSQL_OPT_READ_TIMEOUT 是 MySQL c api 客户端中用来设置读取超时时间的参数。在 MySQL 的官方文档中,该参数的描述是这样的: MYSQL_OPT_READ_TIMEOUT (argument type: unsigned int *) The timeout in seconds for each attempt to read from the server. There are retries if necessary, so the total e...
Otherwise a broken MySQL server can cause denial of service of the whole application with connection pile-ups. I have also added a PHP test which can be used to reproduce the problem and test the fix. Sorry, something went wrong. 👍 8 Make sure MYSQLI_OPT_CONNECT_TIMEOUT applies to...