Skip to content

Commit

Permalink
Fix for CONC-634:
Browse files Browse the repository at this point in the history
Don't switch to compressed protocol if it's not supported by server.
  • Loading branch information
9EOR9 committed Feb 11, 2023
1 parent 916000e commit 14df82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/auth/my_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static int send_client_reply_packet(MCPVIO_EXT *mpvio,
if (mysql->client_flag & CLIENT_COMPRESS)
mysql->options.compress= 1;

if (mysql->options.compress)
if (mysql->options.compress && (mysql->server_capabilities & CLIENT_COMPRESS))
{
/* For MySQL 8.0 we will use zstd compression */
if (mysql->server_capabilities & CLIENT_ZSTD_COMPRESSION)
Expand Down

0 comments on commit 14df82c

Please sign in to comment.