v.19.8Improvements

Improvements of Mysql Wire Protocol

Improvements of MySQL Wire Protocol. Changed name of format to MySQLWire. Using RAII for calling RSA_free. Disabling SSL if context cannot be created. #5419 (Yuriy Baranov)
Improved the MySQL Wire Protocol implementation in ClickHouse, including renaming the protocol format to MySQLWire, enhanced resource management with RAII for RSA keys, and adding fallback to disable SSL if the SSL context cannot be created.

Why it matters

These improvements enhance the stability, reliability, and clarity of the MySQL Wire Protocol interface in ClickHouse. Renaming the format clarifies usage, RAII ensures proper resource cleanup to prevent memory leaks, and disabling SSL fallback avoids connection failures when SSL initialization is problematic, providing a better user experience.

How to use it

To use the updated MySQL Wire Protocol, specify the format as MySQLWire in your configuration or queries. SSL will be automatically disabled if the SSL context cannot be created, requiring no manual action from the user.