[CONJ-622] The option "connectTimeout" must take in account DriverManager.getLoginTimeout() Created: 2018-06-27  Updated: 2019-02-08  Resolved: 2018-06-29

Status: Closed
Project: MariaDB Connector/J
Component/s: JDBC 4.2 compatibility
Affects Version/s: None
Fix Version/s: 2.2.6, 1.8.0

Type: Bug Priority: Minor
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

The option "connectTimeout" doesn't default on DriverManager.getLoginTimeout() as defined in JDBC spec : https://docs.oracle.com/javase/9/docs/api/java/sql/DriverManager.html#getLoginTimeout--

public static void setLoginTimeout(int seconds) : 
 
Sets the maximum time in seconds that a driver will wait while attempting to connect to a database once the driver has been identified.

The connector has an option "connectTimeout" that defaults to 30s when not set.
default must take DriverManager.getLoginTimeout() value if defined, or 30s if not.


Generated at Thu Feb 08 03:17:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.