Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication not working properly in case of compressed connection #2793

Closed
JavierJF opened this issue May 14, 2020 · 1 comment
Closed

Comments

@JavierJF
Copy link
Collaborator

JavierJF commented May 14, 2020

Description

When trying to execute a query in a compressed connection, connection is dropped by proxysql, but in case of using --default-auth=mysql_native_password everything works as expected.

Version

Confirmed OSs:

Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:        19.10
Codename:       eoan

ProxySQL version:

ProxySQL version 2.0.12-11-gd1032d12_DEBUG, codename Truls

Steps to reproduce the issue

  1. Launch proxysql.
  2. Try to execute a query to a mysql server, e.g: mysql -uroot -proot -h 127.0.0.1 -P6033 -C -e "select 1";

Relevant log info

After executing the given command, mysql client replies with:

ERROR 2013 (HY000): Lost connection to MySQL server during query

While proxysql shows that it has received an unknown command:

2020-05-14 19:37:40 MySQL_Session.cpp:3338:handler(): [ERROR] RECEIVED AN UNKNOWN COMMAND: 0 -- PLEASE REPORT A BUG

Full error log:

compress-auth.txt

renecannao added a commit that referenced this issue May 17, 2020
Fixes #2793 and #1493: Connection issues in compressed connections and in mixed compressed/uncompressed connections.
@renecannao
Copy link
Contributor

Reopening this, there is no full PR yet for 2.1.0

@renecannao renecannao reopened this May 17, 2020
JavierJF added a commit to JavierJF/proxysql that referenced this issue May 18, 2020
JavierJF added a commit to JavierJF/proxysql that referenced this issue May 18, 2020
renecannao added a commit that referenced this issue May 20, 2020
Fixes #2793 and #1493: Connection issues in compressed connections and in mixed compressed/uncompressed connections.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants