Track total bytes read, and make sure to reset file descriptors after select times out, since linux clears them.