Bug #35377 | Interactive_timeout is not disconnecting client after time specified by user | ||
---|---|---|---|
Submitted: | 18 Mar 2008 7:42 | Modified: | 22 Mar 2008 9:19 |
Reporter: | Salman Rawala | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
Version: | 5.1.22 | OS: | Any (MS Windows, Linux) |
Assigned to: | CPU Architecture: | Any | |
Tags: | interactive_timeout |
[18 Mar 2008 7:42]
Salman Rawala
[18 Mar 2008 22:02]
Sveta Smirnova
Thank you for the report. Verified as described, but with PHP test. MySQL command line client works fine. Test: php -r 'mysql_connect("127.0.0.1:3350", "root"); mysql_query("SET @@session.interactive_timeout = 1;"); sleep(20); $res = mysql_query("select @@global.interactive_timeout, @@session.interactive_timeout;"); var_dump(mysql_error(), mysql_fetch_row($res));'
[22 Mar 2008 9:19]
Sveta Smirnova
I am sorry: my fault. Client should use CLIENT_INTERACTIVE option to mysql_real_connect(). MySQL test suite uses C API to connect to server, but not set CLIENT_INTERACTIVE flag.