- more logical code flow. - propagate errors back to the caller. - add a 'reading' flag and call the callback from failed_read_cb() only when it the socket was actively reading. (cherry picked from commit 5fcd52209a)
5fcd52209a