• michael-grunder's avatar
    Handle the case where an invalidation is sent second. · 6204182a
    michael-grunder authored
    RESP3 invalidation messages always seemed to be sent before the response
    to a given command, but it appears this is not always the case:
    
    In Redis 6.2.0RC1 Redis sends the invalidation after the HSET in the
    following sequence:
    
    ```
    hget hash field
    $5
    value
    hset hash field value
    :0
    >2
    $10
    invalidate
    *1
    $4
    hash
    ```
    
    To account for this possibility just wrap redisGetReplyFromReader in a
    loop as it is called twice in redisGetReply.
    6204182a
hiredis.c 34.7 KB