azure-redis 6.0.3 responding incorrectly to HELLO 3 ? map length is incorrect

Sefati, Avichai 1 Reputation point
2021-06-10T21:34:47.747+00:00

A lettuce client version = ( 'io.lettuce', name: 'lettuce-core', version: '6.1.2.RELEASE')
Azure redis server version 6.0.3 Windows.

When the client is configured to work with protocol RESP3, a connection is not established.
When using a local docker image with the same version (redis:6.0.3-alpine) the connection is established.

After investigation: I noticed that the server sends an incorrect response to the HELLO message:
It sends a %7 - but only 6 entries are sent back - (the modules entry does not exist)

When sending the HELLO to the linux docker - the response is correct and 7 entries are sent back.

See details below ( the Q&A forum does not allow to add wireshark pcap - but I have one handy if needed)

A) The request and response from Azure:
*5
$5
HELLO
$1
3
$4
AUTH
$7
default
$44
*********password ommited *********
%7
$6
server
$5
redis
$7
version
$5
6.0.3
$5
proto
:3
$2
id
:37421
$4
mode
$10
standalone
$4
role
$6
master

B) The request and response from docker

And against local redis :

5
$5
HELLO
$1
3
$4
AUTH
$7
default
$12
yourpassword
%7
$6
server
$5
redis
$7
version
$5
6.0.3
$5
proto
:3
$2
id
:4
$4
mode
$10
standalone
$4
role
$6
master
$7
modules
*0

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
251 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.