I confirmed: The problem occurs when you have established an ssh tunnel from host A to B (like described above).
Then host A looses network connection.
At this point the tunnel will stil appear in "netstat -tulpen".
But when you try to connect you don't get any response (maybe you have to wait REALLY long??!)
I waited about 1 minute or so and got stil no error message or what so ever from mysql.connector.
Then I closed the ssh connection (and so the tunnel vanished).
At this point you get the above cited "IndexError: index out of range".
So I am not sure if this is possible:
a) to make mysql.connector not wait so long (maybe infinite?) before it fails
b) create a nicer Exception
I confirmed: The problem occurs when you have established an ssh tunnel from host A to B (like described above).
Then host A looses network connection.
At this point the tunnel will stil appear in "netstat -tulpen".
But when you try to connect you don't get any response (maybe you have to wait REALLY long??!)
I waited about 1 minute or so and got stil no error message or what so ever from mysql.connector.
Then I closed the ssh connection (and so the tunnel vanished).
At this point you get the above cited "IndexError: index out of range".
So I am not sure if this is possible:
a) to make mysql.connector not wait so long (maybe infinite?) before it fails
b) create a nicer Exception