• Igor Malinovskiy's avatar
    Allow clients to report name and version (#11758) · c3b9f2fb
    Igor Malinovskiy authored
    
    
    This PR allows clients to send information about the client library to redis
    to be displayed in CLIENT LIST and CLIENT INFO.
    
    Currently supports:
    `CLIENT [lib-name | lib-ver] <value>`
    Client libraries are expected to pipeline these right after AUTH, and ignore
    the failure in case they're talking to an older version of redis.
    
    These will be shown in CLIENT LIST and CLIENT INFO as:
    * `lib-name` - meant to hold the client library name.
    * `lib-ver` - meant to hold the client library version.
    
    The values cannot contain spaces, newlines and any wild ASCII characters,
    but all other normal chars are accepted, e.g `.`, `=` etc (same as CLIENT NAME).
    
    The RESET command does NOT clear these, but they can be cleared to the
    default by sending a command with a blank string.
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    c3b9f2fb
networking.c 173 KB