minor refactoring for rioConnRead and adding errno (cherry picked from commit a4038164)
Attach a file by drag & drop or click to upload