Bug #97666 Contribution by Facebook: Respect capability flags that specify variable values

Submitted: 16 Nov 2019 16:51 Modified: 22 Jan 14:51
Reporter: FBContrib Admin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Security: Privileges Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[16 Nov 2019 16:51] FBContrib Admin
Description:
Background innformation provided by Facebook:
This resolves https://bugs.mysql.com/bug.php?id=97091.

If a connection is established with the CLIENT_INTERACTIVE flag set, COM_RESET_CONNECTION fails to set wait_timeout to interactive_timeout. This violates the expectation that CLIENT_INTERACTIVE instructs MySQL to set wait_timeout = interactive_timeout following COM_RESET_CONNECTION. 
Use case:

We have clients establishing connections with client_interactive expecting to have the connection be kept alive for interactive_timeout seconds. Instead they experience errors rather than having a live and healthy connection to use following execution of COM_RESET_CONNECTION and then waiting less than interactive_timeout seconds.

Repo: https://github.com/mysql/mysql-server
Patch on top of 8.0.13: https://github.com/mysql/mysql-server/commit/e4924f36486f971f8a04252e01c803457a2c72f7

How to repeat:
See description

Suggested fix:
See contribution code attached
[22 Jan 14:50] Omer Barnir
This contribution from Facebook fixes issue reported in bug#97091.
Thanks for Facebook for the contribution

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.041 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.