[MXS-702] COMPRESS flag is not sent in the initial handshake Created: 2016-05-01 Updated: 2016-06-06 Resolved: 2016-06-06 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | mariadbclient |
| Affects Version/s: | 1.4.1 |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Minor |
| Reporter: | Karl | Assignee: | Massimiliano Pinto (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | compression | ||
| Environment: |
docker centos 7, containers: maxscale, 1 master, 2 slaves, nginx-php as web, some more for load balancing web |
||
| Sprint: | 2016-11 |
| Description |
|
enter web container, create test file, switch $client_flags
|
| Comments |
| Comment by markus makela [ 2016-05-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
The following test program seems to work as expected. Since MaxScale doesn't offer the COMPRESS flag in the handshake, the client doesn't use it.
I'll investigate if PHP has different results. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2016-05-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
For some reason, mysqli doesn't honor the server capabilities and proceeds to send compressed data. This causes it to hang since MaxScale misinterprets the compression protocol packets. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Massimiliano Pinto (Inactive) [ 2016-06-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Adding: after $mysqli->real_connect(...) gives on some systems: [client_info] => 5.5.47-MariaDB on others [client_info] => mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $ The clients with "libmysqlnd" connect library are affected by this issue | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Massimiliano Pinto (Inactive) [ 2016-06-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
It's not a MaxScale bug, it's an issue with libmysqlnd libraries |