Skip to content

Setting client info does not work properly for re-connects and multiple connections #406

Open
@atakavci

Description

@atakavci

NRedisStack sets the client info by calling ClientSetInfoAsync when initial connection is established.

the settings given below are captured via monitor command from the initial connection.

1743610438.580669 [0 192.168.0.1:56054] "CLIENT" "SETNAME" "application_host(SE.Redis-v2.8.24.3255)"
1743610438.580682 [0 192.168.0.1:56054] "CLIENT" "SETINFO" "lib-name" "SE.Redis"
1743610438.580684 [0 192.168.0.1:56054] "CLIENT" "SETINFO" "lib-ver" "2.8.24.3255"
1743610438.580688 [0 192.168.0.1:56054] "CLIENT" "ID"

The status for these settings are tracked with a static flag which holds the wrong value for re-connects and multiple connection scenarios like cluster etc.. This ends up with only initial connection gets the client info initialized.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions