[CONJ-490] connectTimeout milli/second mix up Created: 2017-06-05  Updated: 2017-06-05  Resolved: 2017-06-05

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.5.9, 2.0.2
Fix Version/s: 1.6.1, 2.0.2

Type: Bug Priority: Major
Reporter: Craig bailey Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

The implementation for setLoginTimeout(int seconds) in the MariaDbDatasource sets the connectTimeout option in seconds
The connectTimeout option is then used in the AbstractConnectionProtocol when calling socket.connect(sockAddr, options.connectTimeout). However this is expecting a millisecond value.
This is causing connection timeouts to be much lower than expected.



 Comments   
Comment by Diego Dupin [ 2017-06-05 ]

Thanks you, strange that has never been seen before.
That will be corrected in the next corrective version 2.0.2

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