Skip to content

redis-cli: fix writeConn() buffer handling.#7749

Merged
yossigo merged 1 commit intoredis:unstablefrom
yossigo:fix-redis-cli-pipe
Sep 3, 2020
Merged

redis-cli: fix writeConn() buffer handling.#7749
yossigo merged 1 commit intoredis:unstablefrom
yossigo:fix-redis-cli-pipe

Conversation

@yossigo
Copy link
Collaborator

@yossigo yossigo commented Sep 3, 2020

Fix issues with writeConn() which resulted with corruption of the stream by leaving an extra byte in the buffer. The trigger for this is partial writes or write errors which were not experienced on Linux but reported on macOS.

Fixes #7744

@yossigo yossigo requested a review from oranagra September 3, 2020 08:49
@yossigo yossigo merged commit 58e5feb into redis:unstable Sep 3, 2020
@yossigo yossigo deleted the fix-redis-cli-pipe branch September 3, 2020 15:15
oranagra pushed a commit that referenced this pull request Sep 10, 2020
Fix issues with writeConn() which resulted with corruption of the stream by leaving an extra byte in the buffer. The trigger for this is partial writes or write errors which were not experienced on Linux but reported on macOS.

(cherry picked from commit 58e5feb)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
Fix issues with writeConn() which resulted with corruption of the stream by leaving an extra byte in the buffer. The trigger for this is partial writes or write errors which were not experienced on Linux but reported on macOS.
jschmieg pushed a commit to memKeyDB/memKeyDB that referenced this pull request Nov 6, 2020
Fix issues with writeConn() which resulted with corruption of the stream by leaving an extra byte in the buffer. The trigger for this is partial writes or write errors which were not experienced on Linux but reported on macOS.

(cherry picked from commit 58e5feb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Redis-cli 6.0.7 fails mass-insertion with "unknown command" by apparently misreading stdin

2 participants