Bug #83508 MysqlDataSource excludes login timeouts
Submitted: 24 Oct 2016 23:31 Modified: 25 Oct 2016 10:53
Reporter: liam christopher Email Updates:
Status: Verified Impact on me:
Category:Connector / J Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[24 Oct 2016 23:31] liam christopher
Connector/J StandardSocketFactory appears at first glance to use the login timeout. But the value is picked up here, which seemed a little odd because using the MysqlDataSource rather than URL-based (driver) configuration could be excluded. But maybe the MysqlDataSource.setLoginTimeout() does the right thing and calls DriverManager.setLoginTimeout().

Referenced from this comment for configuring HikariCP, which has the proper links.


How to repeat:
Code is not implemented here:

Suggested fix:
Have the setLoginTimeout() actually set the value.
[25 Oct 2016 10:53] Chiranjeevi Battula
Hello liam christopher,

Thank you for the bug report.
Verified based on internal discussion with dev's.