Skip to content
This repository was archived by the owner on Apr 6, 2019. It is now read-only.
This repository was archived by the owner on Apr 6, 2019. It is now read-only.

cpp_redis can't correctly handle "Null reply". #50

@IamYS

Description

@IamYS

Hi.
I use transactions with redis.
When using WATCH, EXEC can return a "Null reply" if the execution was aborted. But in this case callback is not triggered.

Steps.

  1. Call WATCH for some "key".
  2. From other client call SET "key" ...
  3. From first app call MULTI and EXEC.
  4. Last call of sync_commit() return, but callback for EXEC is not triggered.

Then I have tried to debug cpp_redis and found that it can't process reply like "*-1\r\n".
It throw exception in
bool array_builder::fetch_array_size(std::string& buffer)

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions