linux-cancel-blocking-read-issue-on-disconnect

reaching into an object's instance variables is very fragile, as they are considered a private implementation detail and not generally considered part of an object's public API; is there a cleaner way to do this?