Skip to content
Commit 98bdb0aa authored by Sage Weil's avatar Sage Weil
Browse files

libceph: fix socket read error handling



If we get EAGAIN when trying to read from the socket, it is not an error.
Return 0 from the helper in this case to simplify the error handling cases
in the caller (indirectly, try_read).

Fix try_read to pass any error to it's caller (con_work) instead of almost
always returning 0.  This let's us respond to things like socket
disconnects.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent d66bbd44
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment