• antirez's avatar
    Streams: When XREAD blocks without COUNT, set a default one. · db89f747
    antirez authored
    A client may lose a lot of time between invocations of blocking XREAD,
    for example because it is processing the messages or for any other
    cause. When it returns back, it may provide a low enough message ID that
    the server will block to send an unreasonable number of messages in a
    single call. For this reason we set a COUNT when the client is blocked
    with XREAD calls, even if no COUNT is given. This is arbitrarily set to
    1000 because it's enough to avoid slowing down the reception of many
    messages, but low enough to avoid to block.
    db89f747
t_stream.c 19.5 KB