Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in writeToClient (valkey-io#834)
Fix bug in writeToClient In valkey-io#758, a major refactor was done to `networking.c`. As part of this refactor, a new bug was introduced: we don't advance the `c->buf` pointer in repeated writes. This bug should be very unlikely to manifest, as it requires the client's TCP buffer to be filled in the first try and then released immediately after in the second try. Despite all my efforts to reproduce this scenario, I was unable to do so. Signed-off-by: Uri Yagelnik <[email protected]> Signed-off-by: mwish <[email protected]>
- Loading branch information