summaryrefslogtreecommitdiff
path: root/src/replication.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-08-05 16:51:50 +0200
committerantirez <antirez@gmail.com>2015-08-05 16:51:50 +0200
commit7ab3af0edc238c869827c185f997c0a99f4506b5 (patch)
tree866fdc7e02a4c2ac1bdc5573478fea3df91fb103 /src/replication.c
parent55ba77270363400625f4563788d8f842408389a2 (diff)
downloadredis-7ab3af0edc238c869827c185f997c0a99f4506b5.tar.gz
Fix synchronous readline "\n" handling.
Our function to read a line with a timeout handles newlines as requests to refresh the timeout, however the code kept subtracting the buffer size left every time a newline was received, for a bug in the loop logic. Fixed by this commit.
Diffstat (limited to 'src/replication.c')
0 files changed, 0 insertions, 0 deletions