]> git.saurik.com Git - redis.git/commit
Fixed redis-cli readLine loop to correctly handle EOF.
authorLuc Heinrich <luc@honk-honk.com>
Mon, 23 Mar 2009 11:43:16 +0000 (12:43 +0100)
committerLuc Heinrich <luc@honk-honk.com>
Mon, 23 Mar 2009 11:43:16 +0000 (12:43 +0100)
commitb91f03a4d14c166bb8ead41e5b556b1080ccd559
tree9e784e3f6648d36c96fcb0345538f3a259a7c1e7
parent46713f83d46babbc9ad48d11c52cd954a8553846
Fixed redis-cli readLine loop to correctly handle EOF.

When using the shutdown command with redis-cli the server saves the database and, if successful, silently closes the connection. The redis-cli tool did not correcty handle this EOF case in its readLine loop and was therefore infinitely looping - and eating 100% of the CPU - while waiting for some data which would never come.
redis-cli.c