[CONPY-60] Support redirection mechanism Created: 2020-04-24  Updated: 2020-04-24

Status: Open
Project: MariaDB Connector/Python
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Georg Richter
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
Relates
relates to MDEV-15935 Connection Redirection Mechanism in M... Closed

 Description   

The goal is to implement proxy redirection protocol describe in MDEV-15935 :
Connection process would ends with OK_Packet that may indicate redirection mechanism with the format
"Location: mysql:[replication:|loadbalance:|sequential:]//<hostDescription>[,<hostDescription>...]/[database][?<key1>=<value1>[&<key2>=<value2>]]\n" in `info` field.

Connector, if having an option that permits redirection, must then redirect to the indicated location and close initial socket.

A successful redirection can be cached for some time if ttl is set. If some following connection establishment use a cache location and fail to connect, the connector will then try to reconnect to initial host silently.


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