mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Fixed another instace of the Issue 173
This commit is contained in:
parent
357d36733d
commit
09252fc4f3
@ -138,7 +138,7 @@ int syncRead(int fd, char *ptr, ssize_t size, int timeout) {
|
||||
while(size) {
|
||||
if (aeWait(fd,AE_READABLE,1000) & AE_READABLE) {
|
||||
nread = read(fd,ptr,size);
|
||||
if (nread == -1) return -1;
|
||||
if (nread <= 0) return -1;
|
||||
ptr += nread;
|
||||
size -= nread;
|
||||
totread += nread;
|
||||
|
Loading…
x
Reference in New Issue
Block a user