Skip to content

redis-cli: Flush output in pubsub mode #2074

Closed

Description

@badboy

We already flush the output in MONITOR mode, which makes it easy to use usual *nix pipes and combine it with sed, grep, etc.

We don't do this for pubsub mode, which results in redis-cli subscribe foo | grep pattern not working as expected (same thing is true for slave mode)

Should we just flush all the time? Or just set output to be line buffered anyway with

setvbuf(stdout, NULL, _IOLBF, 0);

Activity

  1. yoav-steinberg commented on Oct 20, 2021

    @yoav-steinberg
    Contributor

    Hanlded in #9013

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