When doing small reads and writes use an intermediate buffer to store the data to save locking the remote process to access data.
MFC after: 1 week Sponsored by: NVIDIA Networking
@meka_tilda.center : Can you test this and see if there is any performance impact?
Can we lift this code into a subroutine? The indentation makes it hard to read.
The comment should explain why it's necessary.
When does this condition arise? The comparison error > len looks wrong, but I guess error holds the number of bytes copied upon success.
Address comments from @markj .
Move a comment.
Fix some whitespace that sneaked in.
Ping.
Generally I think this looks good.
Might make sense to do the int -> bool stuff in a separate commit... My quick scan doesn't see any issues.