-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty addresses in
CLUSTER NODES
responses (#148)
When parsing a `CLUSTER NODES` response we will now treat an empty IP string as it means the same endpoint as the response came from. This due to that the docs mention that an empty string is returned for the IP field when the node doesn't know its own IP address. The created `valkeyClusterNode` will get its address from the `valkeyContext` used when sending the command. Additional changes are that we will use the `noaddr` flag instead of the address length when deciding when a node should be skipped; and added validation of the port. Signed-off-by: Björn Svensson <[email protected]>
- Loading branch information
Showing
2 changed files
with
126 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters