handle possible EOF / undocumented return in sendfile