• Bjorn Svensson's avatar
    Handle array response in parallell with pubsub using RESP3 (#1014) · 58aacdac
    Bjorn Svensson authored
    RESP3 allows sending commands in parallell with pubsub handling
    and these commands might get responded with a REDIS_REPLY_ARRAY.
    This conflicts with the pubsub response handling for RESP2 and
    results in a faulty state when using RESP3.
    
    Add functionality to keep track of PUSH/RESP3 support on the connection
    and only expect the message type REDIS_REPLY_PUSH as subscribe messages
    when once seen.
    58aacdac
async.c 28.8 KB