[CONJ-1152] Improve message when reaching socket timeout during connection initial commands Created: 2024-01-24  Updated: 2024-01-24  Resolved: 2024-01-24

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 2.7.12, 3.3.3

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


 Description   

When creating a connection + executing initial queries, connector set temporary a socket timeout (SO_TIMEOUT) of 500ms to avoid being stuck ( that was the case with the first version of maxscale and in all version of aurora). When this timeout error, the error label is just "could not load system variables".
This error must be improved to clearly state that this comes from reaching socket timeout.

At the same time, when under stress, this 500ms timeout is too slow. This has been changed in 3.0 with a dedicated option `connectTimeout` that default to 30s, correction will change this non modifiable option in 2.x to 30s as well.


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