• antirez's avatar
    Fix synchronous readline "\n" handling. · ade9bf7c
    antirez authored
    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.
    ade9bf7c
syncio.c 5.86 KB