Skip to content

redis-cli --pipe not reading server response #2089

Closed

Description

@grooverdan

In here the coprocess should of read from the redis server response from the SET and written to fd 1. to be available to the read command.

# coproc sub { redis-cli --raw  --pipe ; }
[1] 27529
# echo "SET" "test" "munin" EX 120 NX  >&${sub[1]} ; echo done; read -t 1  -ru  ${sub[0]}; echo ret=$? $REPLY;
done
ret=142
# strace -p 27530
Process 27530 attached
read(0, "SET test munin EX 120 NX\n", 16384) = 25
write(3, "SET test munin EX 120 NX\n", 25) = 25
read(0, ..

with setvbuf set from #2074
redis-cli 2.8.4

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