Skip to content

Support RESP2 NULL #348

Open
Open

Description

@anarthal

This is encoded as *-1\r\n or $-1\r\n. When we encounter this, we currently fail with error::not_a_number. I think we could support this to soften the RESP3 requirement (I'd say this is the only RESP2 feature we don't support).

For the record, I've encountered this with SENTINEL, as it sends a NULL array if you forget to upgrade the connection to RESP3 with HELLO.

Activity

  1. mzimbres commented on Nov 8, 2025

    @mzimbres
    Collaborator

    I agree it is simple enough but nobody ever asked for that yet. Do you think there is audience to justify the time invested? RESP3 started being supported in Redis 6 which is already 5 years old.

  2. kkzi commented on Nov 9, 2025

    @kkzi

    Some old systems are still using redis5 (RESP2), yes I am talking about our company’s projects

  3. anarthal commented on Nov 9, 2025

    @anarthal
    CollaboratorAuthor

    My idea was reducing possible footguns. We now have ways to avoid sending HELLO requests on startup, so encountering this is slightly more likely than before.

    @kkzi are you using (or plan on using) Boost.Redis at your company? I can prioritize this for the next release if that's the case.

  4. kkzi commented on Dec 21, 2025

    @kkzi

    My idea was reducing possible footguns. We now have ways to avoid sending HELLO requests on startup, so encountering this is slightly more likely than before.

    @kkzi are you using (or plan on using) Boost.Redis at your company? I can prioritize this for the next release if that's the case.

    Honestly, I'd totally use it; I'm a big fan of Boost! :-)

    Thing is, at my company, they're using hiredis to wrap stuff around it, and some projects are on swredis++. They're probably not hopping on the boost::redis bandwagon anytime soon.

    So, if you've got the time or are up for supporting the older version, that'd be awesome! I'd try to pitch it to the higher-ups. If not, no worries. Just me griping about us being stuck in the past with this tech stack.

  5. anarthal commented on Dec 21, 2025

    @anarthal
    CollaboratorAuthor

    Thanks for the input! I can spin an older Redis docker container and see how much of a hassle it is to support this, and then decide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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