Bug #2555 | Totally silent reconnection when using Unix sockets can fool applications | ||
---|---|---|---|
Submitted: | 29 Jan 2004 6:29 | Modified: | 9 Dec 2004 22:03 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | all | OS: | Any (all) |
Assigned to: | Guilhem Bichot | CPU Architecture: | Any |
[29 Jan 2004 6:29]
Guilhem Bichot
[29 Jan 2004 14:11]
Sergei Golubchik
"silent reconnect" is a expected and documented behaviour of libmysql library - it is able to reconnect automatically if a connection was lost. This feature is ON by default, but can be switched OFF if necessary. This feature is not pefectly safe as after a reconnect - transaction has been rolled back - locks have been unlocked - user vars lost - session vars are reset - temporary tables are lost Thus, while having a reconnect ON by default is definitely not a bug (not a coding error), changing a default to be OFF is a very reasonable feature request.
[8 Nov 2004 10:24]
Guilhem Bichot
In MySQL 5.0 we are going to change the default value of mysql.reconnect to be 0 instead of 1, because 1 is too dangerous to have it as default.
[9 Dec 2004 22:03]
Guilhem Bichot
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Fixed in 5.0.3: ChangeSet@1.1718.1.1, 2004-12-09 14:44:10+01:00, guilhem@mysql.com